S
Shell D00d
Hi,
I'm building a shell replacement for Windows with .net. I'd like to be
able to start components (loaded from a class library) in a thread.
That is to say, I want the thread to start the component and wait
around till the component quits or the thread is forced to abort.
What is the best way to accomplish this? From my experience, I've
never been able to keep a thread alive and wait for a function to
return without freezing the thread except for calls to
Form.ShowDialog(). What goes on behind the ShowDialog function that
allows the component (in this case a form) to keep running AND ALSO
causes the thread from which it was called to pause at that function
call. How can I implement something like this myself?
I can't freeze the thread using synchronization techniques because
this would freeze my component as well and that is not acceptable.
I'm building a shell replacement for Windows with .net. I'd like to be
able to start components (loaded from a class library) in a thread.
That is to say, I want the thread to start the component and wait
around till the component quits or the thread is forced to abort.
What is the best way to accomplish this? From my experience, I've
never been able to keep a thread alive and wait for a function to
return without freezing the thread except for calls to
Form.ShowDialog(). What goes on behind the ShowDialog function that
allows the component (in this case a form) to keep running AND ALSO
causes the thread from which it was called to pause at that function
call. How can I implement something like this myself?
I can't freeze the thread using synchronization techniques because
this would freeze my component as well and that is not acceptable.