Can we interrupt a method while its working?Because I have a method that in a thread and I have to interrupt that method when button click. How can I do that?
I tried Abort() method but its not working. Because Abort() is a method which don't have any garanty behavior. I mean if we use that method, we don't sure about method termination.
I have just a method name like DoSomething() because I use a DLL which is written in C++. Hence I dont have a source code of method. And if I click a button, this method must be terminated
Please give me some advice about it.