Thanks Richard.
I´m trying to do a monitor to a com+ application.The thread does a
call to a com+ object and com+ never answer. When I try to do a
thread.abort, this never finishes, and i have to leave thread up. If i
exit application i supose that thread will continue running.
Really there is no way to abort it?
Richard Blewett said:
It depends on what you mean by bocked. If its waiting on a
synchronization primitive (Monitor, Mutex, Event, etc) the call
Interrupt on the thread. If its block in an unmanaged call due to
WaitForSingleObject then you have bigger problems. If you are truely
taking teh application down then you can call Abort on the thread, but
if you are blocked in unmanaged code then this won't help (assuming
that the thread is a non-background thread). As with all difficult
questions ... it depends.