PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET MDI with threads (parallel work)

Reply

MDI with threads (parallel work)

 
Thread Tools Rate Thread
Old 03-11-2003, 07:17 PM   #1
MIchael Ullrich
Guest
 
Posts: n/a
Default MDI with threads (parallel work)


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
  Reply With Quote
Old 03-11-2003, 07:23 PM   #2
Fergus Cooney
Guest
 
Posts: n/a
Default Re: MDI with threads (parallel work)

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


  Reply With Quote
Old 03-11-2003, 07:28 PM   #3
Armin Zingler
Guest
 
Posts: n/a
Default Re: MDI with threads (parallel work)

"MIchael Ullrich" <michaelu@gmx.de> schrieb
> 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.


--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

  Reply With Quote
Old 03-11-2003, 08:02 PM   #4
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
Default Re: MDI with threads (parallel work)

* michaelu@gmx.de (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>
  Reply With Quote
Old 03-11-2003, 09:22 PM   #5
Fritz
Guest
 
Posts: n/a
Default Re: MDI with threads (parallel work)

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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 03-11-2003, 09:22 PM   #6
Fritz
Guest
 
Posts: n/a
Default Re: MDI with threads (parallel work)



Hi,

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

Bye

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off