Recycle a thread after it was suspended

  • Thread starter Andreas =?ISO-8859-1?Q?M=FCller?=
  • 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
 
N

Nicholas Paldino [.NET/C# MVP]

Andy,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top