Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timers crossing each other?
Message
From
28/11/2001 11:54:42
 
 
To
28/11/2001 11:25:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00586995
Message ID:
00587040
Views:
31
Steve,

I did introduced a flag to disable the both Timers when any of them is processing. I assume then that in VFP7, both Timers' events will occur during the specified intervals.

>Ramil,
>
>One thing to consider is using one timer to handle both functions. Larry Miller touches on this concept in Thread #541244 Message #541741.
>
>When the first process is running, you can set a flag to prevent the second process from proceeding. Reset the flag when the first process is complete.
>
>HTH,
>
>
>>Hi all,
>>
>>I read somewhere that Timers are modeless controls. If I have two timers and both have different intervals; will they overlap each other during their Timer Events?
>>
>>Ex.
>>Timer1.Interval = 10000 && 10 secs
>>Timer2.Interval = 60000 && 60 secs
>>
>>Timer1.Timer && event occured
>>  query backend database ... && SQLExec() query ran for about 3 minutes
>>
>>Timer2.Timer  && 60 secs has passed since the Timer1.Event occured
>>  select alias1
>>  go top   && Error occured here!!!
>>
>>I had an error reading file which then generated the fatal C000005 error. During the 3 minutes that took for the Timer1.Timer event to complete the query; it seemed that the Timer2.Timer event took place as well. How does VFP7 manage multiple Timer controls timer events?
>>
>>
>>TIA,
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform