OrthoDocSoft
Programmer
Folks,
If I have a timer and it performs a process, and that process sometimes might take longer to perform than the timer interval, will the timer execute again "on time" before the first timer execution has finished, thus creating an "overlapping" code execution?
For example: (timer1.interval = 10000, or 10 seconds)
I don't think so, and I hope not, but I thought I would ask.
I want it to be so that if the process triggered by the timer, in this case, waving a flag for 20 seconds (twice as long as the intended timer interval), that the timer interval (10 secs) will be overridden, that only one instance of flag waving will occur at a time, and that the flag waving process will come to an end BEFORE the next instance of flag waving is STARTED by the timer.
Would someone who knows please confirm this for me?
Thanks,
Ortho
"you cain't fix 'stupid'...
If I have a timer and it performs a process, and that process sometimes might take longer to perform than the timer interval, will the timer execute again "on time" before the first timer execution has finished, thus creating an "overlapping" code execution?
For example: (timer1.interval = 10000, or 10 seconds)
Code:
public timer1_timer
call RaiseAFlagAndWaveItFor20Seconds
end
I don't think so, and I hope not, but I thought I would ask.
I want it to be so that if the process triggered by the timer, in this case, waving a flag for 20 seconds (twice as long as the intended timer interval), that the timer interval (10 secs) will be overridden, that only one instance of flag waving will occur at a time, and that the flag waving process will come to an end BEFORE the next instance of flag waving is STARTED by the timer.
Would someone who knows please confirm this for me?
Thanks,
Ortho
"you cain't fix 'stupid'...