>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