Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background processing
Message
From
15/08/2000 13:36:59
 
 
To
15/08/2000 11:21:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00404982
Message ID:
00405088
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform