How to kill a thread immediatley
Posted on 2004-08-26
I am trying to kill a thread immediately by calling Thread.Abort(). However, the thread is not catching the ThreadAbortException until after a very long Remote Method call. I want to be able to not wait for this call to return in certain circumstances. Is there a way to do this?
[there is a case where a second application opens and will use the xml database that the first application is writing to after the remote method returns. the first application runs in the background all the time and I don't mind that it will have to send this method call again. I MUST have the UI for the second applcation appear immediately though, and the UI accesses the XML file and thus I need to tell the first application to stop writing to it or I will have concurrency problems.]