Question : form timer causes "out of stack space error"

I have code that needs to run continously

After code has completed, I display a pop up form that that contains a timer event. When the timer activates, the pop up form closes and the code runs again.
The timer is set for 30 seconds.
This works well, except that after running for a coupes of hours I got the error message: "the form timer has caused an "out of stack space error""

How can I prevent this?

Answer : form timer causes "out of stack space error"

Need the code that opens the popup.

Out of stack space means that your probably calling a rountine in a recursive fashion.  ie.   A calls B, B calls C, and C calls A at some point.

 You can probably figure out what that is by letting your code run for a few minutes, then break the code (Ctrl/Break), then do a view call stack (Ctrl/L).   Look at the call stack and see if you can spot a repeating pattern.

JimD.

Random Solutions  
 
programming4us programming4us