bbly
August 24th, 2005, 06:32 AM
My program makes a call into a COM object which is part of a Microsoft service. We have had the occasional problem of this service locking up. this means that my program locks up when it makes a call into the COM object and doesn't return.
I have try/catch around the call but the problem is that it the call never returns.
I was thinking of having another thread watching the first and making sure that it detects when it gets locked up, so that it can kill it.
How can I detect from a second thread whether the first thread is locked up?
I have try/catch around the call but the problem is that it the call never returns.
I was thinking of having another thread watching the first and making sure that it detects when it gets locked up, so that it can kill it.
How can I detect from a second thread whether the first thread is locked up?