Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Background process
Message
De
22/11/2001 14:47:05
 
 
À
22/11/2001 10:46:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00584685
Message ID:
00584977
Vues:
39
>>I was thinking about doing some lengthy processes in the background. For this purpose, I might need to start a separate EXE (perhaps a second instance of the original EXE - or perhaps I will have to separate the lengthy processes into other files). The idea is that the user specifies some lengthy process in the main program (e.g., prepare a lengthy report), and the second EXE is started automatically.
>
>Take a look at the Pool Manager sample that comes with VFP (SAMPLES\SERVERS\POOLMGR). The idea is that you call a VFP COM object that's based on a timer. Since it's a COM object, it runs in a separate instance of VFP. Basing the COM object on a timer means that it can return control immediately to the caller, which can carry on doing whatever it needs to. The timer in the COM object then fires and starts performing the required task in the background.
>
>Doug

Hi, Doug,

I have only one comment to this thread - rather than set up timer-based COM objects and arcane API calls, wouldn't it be easier to just switch to Unix/Linux? One statement in most languages, and there you are - a forked child process.

David (realizing that VFP doesn't run in Linux...)
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform