Are you sure you want to do that? If you stop both threads, the
application will just dissapear, and that's not exactly a good user
experience.
If an exception occurs in a thread, and that exception is not handled,
then the thread is terminated automatically.
What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Ha ha" <ha**@devdex.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
I create a main thread ,than create a subthread in the main thread,when
i found any error,i want to stop the subthread and the main thread
immediatly .How can i do for it.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!