Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with multiple timers
Message
From
20/11/2003 14:31:40
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00851878
Message ID:
00852011
Views:
12
>Hi all,
>
>I'm running a program that creates some objects from classes, one of which is a timer that fires a method every 10 seconds, for instance:
>
>procedure timer
>
> this.enabled = .f.
> my_method()
> this.enabled = .t.
>
>endproc
>
>This method called from the timer creates an object from a dll, runs some code then releases the dll and returns. This code has been working fine for some months, until now. The problem now is that I have just created a new dll that also contains a timer. The new dll runs fine and releases but when it returns the controlling program, the first timer doesn't fire any more even though it is enabled.
>
>Has anyone else experienced problems with multiple timers in multiple classes?

Yes, others have encountered problems running more than 1 VFP timer simultaneously. You can try Bela Bodec's replacement A form independent, enhanced timer fll File #9315
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform