Catch unhandled exception of invisible thread

Posted by user346804 on Stack Overflow See other posts from Stack Overflow or by user346804
Published on 2010-06-12T19:31:48Z Indexed on 2010/06/12 19:43 UTC
Read the original article Hit count: 224

Filed under:
|

In my C++ application i use an activeX component that runs its own thread (or several I don't know). Sometimes this components throws exceptions. I would like to catch these exceptions and do recovery instead of my entire application crashing. But since I don't have access to its source code or thread I am unsure how it would be done.

The only solution I can think of is to run it in its own process. Using something like CreateProcess and then CreateRemoteThread, unsure how it could be implemented.

Any suggestion on how to go about solving this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about threads