So, I can create a new one or manage the state through suspend and resume. Wath the best way doing it ?
Pierre ----------------------------------------------- Pierre Greborio [EMAIL PROTECTED] http://www.pierregreborio.it ----------------------------------------------- -----Original Message----- 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 to somehow add the stopping condition within your thread. ie. something like this (just an example...) : begin main thread code bool ThereIsStillSomethingToDo=true while(ThereIsStillSomethingToDo) { // do something if (some condition is not met) ThereIsStillSomethingToDo=false } end main thread code HTH, Nicolas > -----Original Message----- > From: Pierre Greborio [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 15:36 > To: [EMAIL PROTECTED] > Subject: [DOTNET] Restart a thread > > > Hi, > I have a thread in stopped state and I need to start it again. The > start method raise an exception. How can I retart the thread ? > > Thx > Pierre > > ----------------------------------------------- > Pierre Greborio > [EMAIL PROTECTED] > http://www.pierregreborio.it > ----------------------------------------------- This message is for information purposes only and its content should not be construed as an offer, or solicitation of an offer, to buy or sell any banking or financial instruments or services and no representation or warranty is given in respect of its accuracy, completeness or fairness. The material is subject to change without notice. You should take your own independent tax, legal and other professional advice in respect of the content of this message. This message may contain confidential or legally privileged material and may not be copied, redistributed or published (in whole or in part) without our prior written consent. This email may have been intercepted, partially destroyed, arrive late, incomplete or contain viruses and no liability is accepted by any member of the Credit Agricole Indosuez group as a result. If you are not the intended recipient of this message, please immediately notify the sender and delete this message from your computer. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.