Kill the thread, really!

I need to finish the frozen stream, I set IsBackground to true, but it remains alive. Topic Properties:

ThreadState = AbortRequested

IsBackground = true

When I look at a frozen spot, I find the following line:

resultDetect = Detect(input, ref output);

A point is third-party code (discovery method). The thread only updates resultDetect, as you can see. I need to cancel this thread and restart a new one to continue. Otherwise, the application waits and does nothing - you need the desired result. -

How can I kill a thread that does not die?

+5
source share
3 answers

: Environment.Exit , .

, . , .

+4

Detect , CLR ThreadAbortException , . .NET 2.0, . CLR , , , , API WCF, .. .

+2
+1

All Articles