Re: [DOTNET] Restart a thread

2002-06-10 Thread Pierre Greborio
- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Nicolas Benech Sent: Monday, June 10, 2002 12:43 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Restart a thread Hi Pierre, If I remember well, once a thread is stopped then it cannot be restarted. You have

Re: [DOTNET] Restart a thread

2002-06-10 Thread Nicolas Benech
Hi Pierre, If I remember well, once a thread is stopped then it cannot be restarted. You have to somehow add the stopping condition within your thread. ie. something like this (just an example...) : begin main thread code bool ThereIsStillSomethingToDo=true while(ThereIsStillSome

Re: [DOTNET] Restart a thread

2002-06-10 Thread Dean Cleaver
Pierre, If the thread is in a stopped state, I don't know if it can be restarted - however if it's suspended (via the Suspend() method) the it can be resumed via the Resume() method... Check the IsAlive state to see if it is infact still alive... Dino -Original Message- From: The DOTNE