Re: API curiosity
- Posted by Sabal.Mike at notations.com Feb 14, 2002
- 448 views
Welcome to the world of Euphoria's garbage collection . Whenever you use allocate, you should lock the memory location so it doesn't get swapped out. I honestly can't think of a case where you wouldn't lock the memory after allocating, but maybe someone else can. Michael J. Sabal >>> wolfritz at KING.IGS.NET 02/14/02 12:48PM >>> I was quite surprised that this wouldn't work, because once the title had been changed by the first xSetWindowText(), the memory pointed to by 'normal' no longer contained the 'literal' string "Normal Title". So much for re-useability... ... just guessing by the gibberish contained in the title bar, it may even be a pointer ? If this is the case, how many other seemingly simple API functions do weird things like this ?