Hi all,
This occures in my tiny app :)

->
An unhandled exception of type 'System.Threading.ThreadStateException'
occurred in mscorlib.dll
Additional information: Thread is not user-suspended; it can not be
resumed.
<-

The code is like this:
  if (c.t.ThreadState == ThreadState.Suspended) 
   {
     c.cp.SetNewCommand(bc);
     c.t.Resume();
   }
-----
Where c is just a struct holding a Thread t and a command processor cp.

So, how else can a thread be suspended, when not "user-suspended" ??
Any hints for that?

Alois

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to