Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

New Post: Parallrlfox - how to run a form method

$
0
0
The main thing to keep in mind is that the workers are separate instances of FoxPro, and ParallelFox allows communication between the instances. So, the workers cannot automatically see the "inward" cursor in the main process. You will have to open it in your worker code. Likewise, the workers cannot see "Thisform" from the main process. You should pass any values as parameters to the code you want to run in parallel (you could also pass Thisform to the worker code). I'm not sure where your delays are, but you may be able to get by just running SendEmail() in parallel.

See Parallel.CallMethod() in the Help file for the syntax to run a VCX method. Example:
Parallel.CallMethod("SendEmail", "MyClass", "MyClassLibrary.vcx", "MyApp.exe", .f., MyParameter1, MyParameter2)
To run ParallelFox, include ParallelFox.vcx in your project and register ParallelFox.exe. See the Deployment section in the Help file for more details.

Hope this helps,

Joel

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>