` Printed Icetips Article

Icetips Article



Par2: Preventing infinite loop in Processes when using Message()
1998-05-07 -- Arnor Baldvinsson
 
The problem is that the timer events are stacked up while the program is waiting for user

input from the Message or procedure call.  Encapsulate your code in:

ProgressWindow{Prop:Timer} = 0
! Your code
ProgressWindow{Prop:Timer} = 1

This disables the timer events from firing while it runs your code.
This will be a problem every time you call message or any other procedure in your 
program from the timer event.



Printed November 21, 2024, 7:17 am
This article has been viewed/printed 35192 times.