Re: ThreadAbortException fails to get thrown from thread making remoting call.
- From: "Goran Sliskovic" <gsliskov@xxxxxxxxx>
- Date: Wed, 14 Mar 2007 15:51:00 +0100
"Howard Swope" <hswopeATtrafficDOTcom> wrote in message
news:u9HFDCkZHHA.3520@xxxxxxxxxxxxxxxxxxxxxxx
I have a thread that is making a remoting call. Another thread calls to....
abort this thread, which is supposed to fire a ThreadAbortException on the
thread that is making the remoting call. This does not happen.
Any thoughts?
Threads can be aborted only in certain states and at certain moments. If
thread is blocked in API call for example, it cannot be aborted by .NET
framework. You may resort to aborting through native windows API, however
this may lead to nasty consequences (if possible at all). I thnik that there
should be some resources on the internet about .NET aborting calls.
I also noticed that remoting threads cannot be aborted. Since it rarly
happens, I leave them hanging. However, you must ensure that you don't hold
any locks in the process...
Regards,
Goran
.
- Follow-Ups:
- References:
- ThreadAbortException fails to get thrown from thread making remoting call.
- From: Howard Swope
- ThreadAbortException fails to get thrown from thread making remoting call.
- Prev by Date: ThreadAbortException fails to get thrown from thread making remoting call.
- Next by Date: Re: ThreadAbortException fails to get thrown from thread making remoting call.
- Previous by thread: ThreadAbortException fails to get thrown from thread making remoting call.
- Next by thread: Re: ThreadAbortException fails to get thrown from thread making remoting call.
- Index(es):