Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many timers are TOO MANY?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00926585
Message ID:
00926680
Vues:
14
Well, I have a LED class, for example with 2 timers, one that controls the fading and other the blinking, and I put lot's of them in one form to test, and i can use more than 10 LEDS (20 timers) with no problem, eventhough the 'fading timer' has a very fast rate, but...

Although I would have no problem having multiple timers doing something trivial like the LED, I would be very weary of using more than one timer to handle the same data (or diferent tables of related data). Keep in mind that the way the timers work (AFAIK) is that when one timer fires, it stops the execution of any other code, even other timers, runs it's code, then returns to the where it was, for example other timer's code, so your data will be in an non defined state
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform