In C# ,how do I terminate a thread that has had its call stack corrupted?
- by Emil D
I have a thread in my application that is running code that can potentially cause call stack corruption ( my application is a testing tool for dlls ).
Assuming that I have a method of detecting if the child thread is misbehaving, how would I terminate it? From what I read, calling Thread.Abort() on the misbehaving thread would be equivalent to raising an exception inside it.I fear that that not be a good idea, provided the call stack of the thread might be corrupted.Any suggestions?