MDI with threads (parallel work)

  • Thread starter Thread starter MIchael Ullrich
  • Start date Start date
M

MIchael Ullrich

Hi,

actually I have a childform, which runs a self-written script
interpreter (runs aprox. 1 min).
I want to create more child-forms and I want to have the interpreters
run parallel.
Right now only the interpreter of the last created form is running
until it is finished and then the other ones are continuing.

How can I make parallel working child-forms

bye

Mike
 
Hi Mike,

This is the third post with this message - which one do you want the
responses in?

I suggest that the original thread is the best place.

Regards,
Fergus
 
MIchael Ullrich said:
actually I have a childform, which runs a self-written script
interpreter (runs aprox. 1 min).
I want to create more child-forms and I want to have the
interpreters run parallel.
Right now only the interpreter of the last created form is running
until it is finished and then the other ones are continuing.

How can I make parallel working child-forms

Please stay in the other thread you started.

The child Forms don't have to be *created* in separate threads, but you can
create one child *for* each thread. Despite, each thread must marshal the UI
tasks to the main thread, i.e. to the thread that created the Forms.
 
* (e-mail address removed) (MIchael Ullrich) scripsit:
actually I have a childform, which runs a self-written script
interpreter (runs aprox. 1 min).
I want to create more child-forms and I want to have the interpreters
run parallel.
Right now only the interpreter of the last created form is running
until it is finished and then the other ones are continuing.

How can I make parallel working child-forms

You will have to create the child forms in the main UI thread and
communicate with them from whe worker threads using invoking techniques.

More information:

<http://www.devx.com/dotnet/Article/11358>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
 
Hi,

how can I create a thread for a Child-Form?

Imports System.Threading
Public Class Form1
Inherits System.Windows.Forms.Form

Private cID_Handler As New f_ID_Handler()
Private cIDHandlerThread As Thread

Private Sub Form1_Load(...
cIDHandlerThread = New Thread(AddressOf cID_Handler)
cIDHandlerThread.Start()
...

but this does not work.

Do You have a good example?

Bye

Mike
 
Hi,

I understand nothing. The link is dead. Can You send me an other link or
example please.

Bye

Mike
 
Back
Top