Hi,
Am having a problem with intervals. I register my interval function, which basically stops the movement of some dark physics billiard balls.
It works great if called with the "count" argument set to one, and it only executes that one and only time, ignoring subsequent calls. Same if I call it 2 or more. When it reaches the end, it just never works again.
If the count parameter is set to zero, I can call it any number of times and it works fine,(I stop it after every call, as in the example) but when the program ends, it shows a small message box without any text (just a red error X) and when clicking it to acknowledge, it shows a runtime error 216 at some hex address. Guess the timer still works even though any other item has been removed from memory, and it crashes.
So far, the problem is only when the program ends.
I guess that if somehow it can be "destroyed" before ending the problem that won't happen.
In Delphi, you can start a timer and make it stop any number of times, and this should work alike.
Thanks
May the 3d force B with U