G
Guest
I have several procedures that are executed when the Timer.Tick event is run.
How can I make sure that those procedures are not executed again (by the
Tick event) if the previously-called procedures (also called by the same Tick
event) are still running?
Is it possible to condition it using a bool? For example, just before
running the first procedure activated by the Timer, bool iSComplete will
equal false. When the Timer is run again after X seconds, it'll check
iSComplete. If iSComplete is false, then it won't run again. If not, it'll
run.
The problem is that I tried this, but it displayed some erratic behavior. I
think it has to do with the threading.
Thanks.
How can I make sure that those procedures are not executed again (by the
Tick event) if the previously-called procedures (also called by the same Tick
event) are still running?
Is it possible to condition it using a bool? For example, just before
running the first procedure activated by the Timer, bool iSComplete will
equal false. When the Timer is run again after X seconds, it'll check
iSComplete. If iSComplete is false, then it won't run again. If not, it'll
run.
The problem is that I tried this, but it displayed some erratic behavior. I
think it has to do with the threading.
Thanks.