Closed tuansieucap closed 2 years ago
This error usually indicates that ParallelFox.exe has not been registered. DO INSTALL to perform registration and see if that fixes the problem. See https://github.com/VFPX/ParallelFox#installation for more details.
Hello Joel,
Thank you for your response. I installed ParallelFox but encountered the issue. I downloaded latest files on github. The problem was solved.
How do we run multiple commands or run some lines of codes using ParallelFox? I use parallel.Docmd to run a line of code. I don't know how to run some lines of codes.
Thank you,
Tuan
On Tue, Apr 12, 2022, 9:38 PM Joel Leach @.***> wrote:
This error usually indicates that ParallelFox.exe has not been registered. DO INSTALL to perform registration and see if that fixes the problem. See https://github.com/VFPX/ParallelFox#installation for more details.
— Reply to this email directly, view it on GitHub https://github.com/VFPX/ParallelFox/issues/4#issuecomment-1096815430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYUVTJMBN7SX5DWWURPL5UDVEWDEXANCNFSM5TA6BZYQ . You are receiving this because you modified the open/close state.Message ID: @.***>
Hi Tuan,
I'm glad to hear you resolved it. Try Parallel.ExecScript() for running multiple lines of code. Please note that there are training videos available on YouTube that cover the basics, as well as a Help file that is included with ParallelFox. See https://github.com/VFPX/ParallelFox for more info.
Hello Joel,
Thanks for your response. The script is running in a thread. After running the lines of codes in the script, how do we get the values of variables in the script?
Thank you,
Tuan
On Tue, Apr 12, 2022 at 11:01 AM Joel Leach @.***> wrote:
Hi Tuan,
I'm glad to hear you resolved it. Try Parallel.ExecScript() for running multiple lines of code. Please note that there are training videos available on YouTube that cover the basics, as well as a Help file that is included with ParallelFox. See https://github.com/VFPX/ParallelFox for more info.
— Reply to this email directly, view it on GitHub https://github.com/VFPX/ParallelFox/issues/4#issuecomment-1096845642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYUVTJN5BRGWQNUY6R5QYMDVEWF55ANCNFSM5TA6BZYQ . You are receiving this because you modified the open/close state.Message ID: @.***>
Hello Joel,
Please disregard the previous email. I just figured it out. I pass _VFP to ExecScript function. I use _VFP to execute commands. In the main process, I see the variables in the ExecScript function. I call the ExecScript function like this: Parallel.ExecScript(cScript,,_VFP).
Thank you,
Tuan
On Tue, Apr 12, 2022 at 11:59 AM Tuan Vo @.***> wrote:
Hello Joel,
Thanks for your response. The script is running in a thread. After running the lines of codes in the script, how do we get the values of variables in the script?
Thank you,
Tuan
On Tue, Apr 12, 2022 at 11:01 AM Joel Leach @.***> wrote:
Hi Tuan,
I'm glad to hear you resolved it. Try Parallel.ExecScript() for running multiple lines of code. Please note that there are training videos available on YouTube that cover the basics, as well as a Help file that is included with ParallelFox. See https://github.com/VFPX/ParallelFox for more info.
— Reply to this email directly, view it on GitHub https://github.com/VFPX/ParallelFox/issues/4#issuecomment-1096845642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYUVTJN5BRGWQNUY6R5QYMDVEWF55ANCNFSM5TA6BZYQ . You are receiving this because you modified the open/close state.Message ID: @.***>
It sounds like you are using _VFP as a manual callback from a worker to the main process. That might work, but you need to be careful you are not blocking other workers. The ParallelFox way to return values from the worker to the main process is to use Worker Events. Complete_After.prg is an example of this, but that would make more sense after you watch the training videos.
I call StartWorkers function without passing the True value like this: Parallel.StartWorkers(FullPath("Steps_After.prg"))
I receive this error message: "Class definition ParallelFox.APPLICATION is not found".
I open ParallelFox.vcx file. I don't see APPLICATION function. How do we fix this issue?