Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug on timer, but not deterministic
Message
 
 
To
22/10/2003 06:44:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00840948
Message ID:
00841250
Views:
21
Fabio, I've also had problems with multiple Timer events for one Timer queuing up. This has happened even if the first thing done in the Timer Event is:
This.Interval = 0
This.Enabled = .F.
The only way I could handle it was with a Form property lBusy:
If ThisForm.lBusy Then
   Return .F.
Endif
ThisForm.lBusy = .T.
This.Interval = 0
This.Enabled = .F.

*- ... other processing here

*- Restore Interval and Enable
This.Interval = 1000
This.Enabled = .T.
ThisForm.lBusy = .F.
Return .T.
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform