Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does timer work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00636691
Message ID:
00636878
Vues:
30
>I would like to include into a proc file the ability to loop at intervals instead of just looping with a DO WHILE. I have noticed that using a do while processing is very intense and you are unable to do anything else as the system is so occupied.. On the other hand, using timer this doesn't seem to be the case.

Bob,
Without knowing the gruesome details, I belive the Timer control is linked to the SetTimer WinAPI function. The SetTimer function sets up timer in the OS and the OS handles the interval and countdown outside of the internal VFP processing. It is for this reason that there is no increase in VFP processing times.

When the OS detects that the timer event fires, it sends a WM_TIMER message to VFP to process. That is the only time VFP gets into the mix.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform