Recycle a thread after it was suspended

  • Thread starter Thread starter Andreas =?ISO-8859-1?Q?M=FCller?=
  • Start date Start date
A

Andreas =?ISO-8859-1?Q?M=FCller?=

Hi All,

What I want to do, is to reuse a thread after it was supended. However,
if the thread was suspended for a while and I reinvoke it using
Thread.Resume(), an exception is thrown. If I look at the ThreadState of
the thread, it does not show Suspended, but WaitSleepJoin.
Am I missing something between Thread.Suspend() and Thread.Resume()?
Thanks in advance,
Andy
 
Andy,

What is the exception that you are getting? You should be able to
resume the thread if it is suspended.
 
Back
Top