And for those of us that possess an overdevelopped gift of idiocy whom make gaffs as big as this the solution is simple:
NO SH*T SHERLOCKCode:uses Classes;
Sorry for the useless post, my big gaff of the LD is above...
And for those of us that possess an overdevelopped gift of idiocy whom make gaffs as big as this the solution is simple:
NO SH*T SHERLOCKCode:uses Classes;
Sorry for the useless post, my big gaff of the LD is above...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
OK, after basic testing, like running the program again - that did NOT solve the gaff and all INT64 variables have decided to remain on 256 like constants.... Any help would be much appreciated.
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
I'm not sure I quite follow this. You say CycleDelay is set to 256 but I don't see it ever get used. Also there is LastWait but it is never initialized.
Anyway, not sure if it helps but I used your code in Delphi and got this "W 1128292 lw 0 t 1128292" as the outcome.
CycleDelay is set to 20 during program initialization (forgot to include above)... However, every time Wait is called it resets to 256 instead of 20 without being used anywhere else.
The outcome you posted is exactly on the money for a CycleDelay of 0. Just running the above for me yields W 1100 lw 256 t 1356
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
After having worked on it more, I now have something that works in dry runs occasionally but I always get a 'Killed' and exit code 137. I have no idea what it is but its just as anoying as the bug above that may now have been fixed...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
The function itself and variables seem ok to me. But what caught my eye is that you use oApplication = Object. I have no idea whatsoever how the deprecated objects work or if they're still supported. You didn't include the essential for the problem (memory leak) which is use of that oApplication.
Last edited by User137; 20-08-2011 at 05:55 PM.
What was the depreciated object replaced by? I was not aware of it being depreciated...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
Bookmarks