This project is read-only.

ParallelFox: give me help to use this!

Topics: General
Nov 14, 2016 at 4:25 PM
Hi all!
I downloaded ParallelFox, i read the documentation, the examples and the videos but i have a problem with it...
I wrote this code in my event:
Local Parallel as Parallel 
Parallel = NewObject("Parallel", "ParallelFox.vcx")
IF Parallel.DetectHyperThreading()
    m.lnWorkerCount = Parallel.CPUCount / 2
    m.lnWorkerCount = Parallel.CPUCount
Parallel.SetWorkerCount(m.lnWorkerCount, m.lnWorkerCount)
After this, i made a prg file with 2 procedures:
  • pA1()
  • pA2()
My purpose is to run pA1() and in background pA2() that require more time to be completed. For this reason, i wrote this code:
Following the example, all is done...
In fact, i don't get any error for this, but for the next application workflow. Seems that procedures doesn't execute (i put a messagebox in either but no results).

In VFP debug, the program call me that the process is already active.

I don't understand how to solve this problem. So... i hope that one of you can help me!

Have a nice evening.

P.S. I'm sorry for my bad english!
Feb 21 at 3:44 PM
Hi Mr_Ocean,

I apologize for missing this one, and I apologize again because I don't understand the question. Perhaps a Parallel.Wait() in the right place will help?