Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6: Timer interval limits
Message
From
27/08/2001 11:59:53
 
 
To
27/08/2001 10:20:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00548280
Message ID:
00549477
Views:
19
>>>If I set the Timer.Interval property to 2 hours, I expect the Timer() event to run after two hours - without me having to do additional checks or coding. Under what circumstances would that fail?
>>>
>>>Hilmar.
>>
>>When the time expires while some OTHER (non-VFP) process is running.
>
>So, if I understand correctly, in my example the Timer will wait ANOTHER 2 hours before it fires again! I didn't know this problem existed (all Timers I have used so far were for much shorter intervals). So, that is the reason many programmers prefer to check more frequently, right?
>
>Hilmar.

No, in the case that the interval *has* expired (maybe 10 minutes ago, maybe 3 hours ago) once the app. REGAINS control, it will fire. If it was 3 hours ago and you have 2hours set, then you will get 2 immediate fires.

This is true regardless of the interval. With a very short interval you will get as many fires as have occurred too, all at once, upon the app. regaining control.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform