H
harry
I have a function run in a seperate Thread (Thread_A) to the main form.
I would like Thread_A to take advantage of multi threading and process data
using an additional thread.
I tried this however when the code runs, the program won't continue to the
line immediately after .RunWorkerAsync until after BW.RunWorkerAsync has
completed.
Line 1: Dim BW As New BackgroundWorker()
Line 2: BW.RunWorkerAsync(New clsTest(Param1, Param2, Param3))
Line 3: This Line doesn't execute until line 2 has completed processing.
In another part of my code, I run BackgroundWorker from the main form and it
works ok - the code after the .RunWorkerAsync does execute while the
WorkerThread is still running.
Why can't I start a thread from another thread ?
Thanks
Harry
I would like Thread_A to take advantage of multi threading and process data
using an additional thread.
I tried this however when the code runs, the program won't continue to the
line immediately after .RunWorkerAsync until after BW.RunWorkerAsync has
completed.
Line 1: Dim BW As New BackgroundWorker()
Line 2: BW.RunWorkerAsync(New clsTest(Param1, Param2, Param3))
Line 3: This Line doesn't execute until line 2 has completed processing.
In another part of my code, I run BackgroundWorker from the main form and it
works ok - the code after the .RunWorkerAsync does execute while the
WorkerThread is still running.
Why can't I start a thread from another thread ?
Thanks
Harry