Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Async Processing With FoxPro
Message
 
To
29/03/2005 14:53:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00999767
Message ID:
00999769
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
Also, check out this message - #973643 which makes it a little more clear.
You can use this technique to do background operations in vfp while freeing up and running regular vfp mode in the foreground.
BTW, VFP mtdlls are really multi-threaded but only work with MT clients like IIS.
>What is the best way to execute multiple tasks simultaneously in a FoxPro application? I have a few long batch operations that would benefit running in the background, without holding up other operations. I know VFP isn't multithreaded, but I know it can create COM servers that run in their own process space. The trouble though, is that I haven't figured out how to have the main app launch an operation in the COM server, and return from that object while the operation is executing. I tried BindEvents, seeing if I could call an empty method in the COM server, which the COM server had prevously bound the processing method to. But this seemed to produce the same result as alling processing method directly - waiting until the processing completed.
>
>I know I could create a standalone EXE that I could run via shell execute, but I wouldn't be able to control it as well.
>
>Any suggestions or ideas? Some brief searches haven't returned much in the way of examples or documentation.
>
>Thanks,
>
>Brian Vander Plaats
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform