J
jmd.msdn
Hello.
I want to abort a thread whose thread function contains something like :
void threadfunc ()
{
while ( 1 )
{
... some code
udpClient.Receive(...); // instance to read network
data
... some code using received data
}
}
Another method in my thread class has :
thread.Abort();
Problem when Abort() has been called : the thread, as seen in debug mode
shows :
1. do NOT abort
2. remains in an AbortRequested ThreadState
3. IsAlive is true
Question :
Does someone can tell me what can maintains a thread in an
AbortRequested ThreadState ?
Thank you.
jmd
I want to abort a thread whose thread function contains something like :
void threadfunc ()
{
while ( 1 )
{
... some code
udpClient.Receive(...); // instance to read network
data
... some code using received data
}
}
Another method in my thread class has :
thread.Abort();
Problem when Abort() has been called : the thread, as seen in debug mode
shows :
1. do NOT abort
2. remains in an AbortRequested ThreadState
3. IsAlive is true
Question :
Does someone can tell me what can maintains a thread in an
AbortRequested ThreadState ?
Thank you.
jmd