Time limit for loop execution
- Last UpdatedJul 23, 2024
- 1 minute read
To avoid infinite loops, there is a time limit during which FOR loops must complete execution. If a loop does not complete execution after this time span, WindowViewer automatically terminates it and writes a message about the termination to the Log Viewer.
The default time limit is 5 seconds. You can customize it by adding the following line to the intouch.ini file in your application directory:
LoopTimeout=x
Replace x with the time limit in seconds.
Note: The time limit is checked only at the NEXT statement of the loop. Therefore, the first iteration of the loop is always executed, even if it takes longer than the time limit.