Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer and event
Message
From
05/03/1997 00:04:16
 
 
To
04/03/1997 23:42:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00022890
Message ID:
00022892
Views:
42
>At the end of one of my event, I have oApp.oTimer.Enabled=.T.
>
>This will activate oApp.oTimer.Timer() event.
>
>The problem is that I need to make sure the event, which activates the timer, need to be finished before the oApp.oTimer.Timer() event occur.
>
>Right now, the oApp.oTimer.Timer() event is starting while the prior event is not released from memory.

The first timer event occurs after the first time slice. So, one solution is to set your timer interval big enough to be sure the other event is finished. You can reset the timer interval in the Timer event, first time it occurs.

Second solution: use a flag, if possible.

Also: Activate your timer as last action in calling event.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform