Quote from the Online Manual.
A remark in the description of the wait statement:
Quote:
While a function is waiting, all other functions - including the calling function - continue to run in parallel, so all global variables and all pointers except my and you can possibly change during the wait time. !! While the content of local variables is preserved, their addresses change after every wait() because the function runs every time in a different stack frame.

Please concentrate on the part that deals with local variables.
I think that could be the reason. Or a glitch in the Acknex engine.
Who knows?
Finally, you have the option to try out, in your own code. Or try with my code that i attached in my opening post.

Last edited by Aku_Aku; 09/29/16 19:20.