Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using timer control in a VFP apps (?)
Message
De
21/05/2002 15:25:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00659312
Message ID:
00659550
Vues:
16
Hi Ricardo,

Recently I developed an app (a Task Scheduller) that fires tasks (exes, bats...) that have their schedulled dates/times stored in a table (managed by another app, called Task Central).

The task scheduller (a VFP app) implements calls to CreateProcess and WaitForSingleObject to manage the schedulling environment so:

>1) Affect significantly the app. performance to have this active control running every 60 seconds this event ?

No, I check the event table at 300 msec intervals, and there is no degradation in performance in any of the active tasks in that server.

>2) really this control is executed in background? Run in another thread ?

I'm not sure about that, because I implement the wait loop thru calls to the Sleep (Win32API) function.

>3) Is necessary run the program that manages the alarms in another EXE or it is correct runs within the same app. ?

Think this depends on your app design.

>4) Somebody had to develop some kind of alarm or warning programmed in its apps, as it solved it ?

Well, the functionality I implemented, seems something like what you're asking for (though you're wanting to fire alarms and not tasks), but didn't use the timer control. Anyway, think it's not that difficult to implement such an app as it may seem at first.

Hope it helps,

Fernando
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform