Threading - Merging a spawned thread with the main thread

G

Guest

I'm having a major problem with threads.

I have a main application that dynamically loads plugins. One of the
plugins receives SMS messages in a seperate thread. When an SMS comes in I
need to display an MDI Child form within the Main Application workspace. The
code bombs out when I attempt to assign the MDIParent of the child form to
the Main Form (in the main thread). Some how I need to merge the spawned
thread with the main thread before creating the child form.... any ideas?

I know Invoke() can be used for GUI controls, but I can't use this as I'm
creating the form from a class that is not a Form..!?!?

Thanks


Threading - Merging a spawned thread with the main thread
 
I

Instant Baja

Neds said:
I'm having a major problem with threads.

I have a main application that dynamically loads plugins. One of the
plugins receives SMS messages in a seperate thread. When an SMS comes in
I
need to display an MDI Child form within the Main Application workspace.
The code bombs out when I attempt to assign the MDIParent of the child
form to
the Main Form (in the main thread). Some how I need to merge the spawned
thread with the main thread before creating the child form.... any ideas?

..Join() ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top