Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Background processing
Message
De
15/08/2000 13:36:59
 
 
À
15/08/2000 11:21:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00404982
Message ID:
00405088
Vues:
20
>Hi all
>
>Is there a way I can process VFP commands in the background without them freezing VFP or my current session?
>
>Thanks
>Kev

VFP executables are singlethreaded: there is no way to spawn a thread for parallel processing. You can however, create an out-of-proc COM server, add a timer to it, and have a call to the server activate the timer and return control to the caller. The timer will fire and run your code, and you are free to go about your business in the calling process. You will have to poll the server for the results, or if you want to bind to an event you'll have to write the server in something that can raise events (VB, VC, etc), and use VFPCOM to bind to it.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform