Hi,

I just got an idea about the exception handling. I am currently implementing a program that will use some third party dll, COM object. When these dll generate a error, usually my program will get an unhandled exception and in my exception handling code I can do little but write some debug information and let the program quit.

I think if I can know which thread that caused the exception from the exception address and other information, maybe I can terminate the thread from my exception handling code and resume from the exception.

My question is how do I know which thread caused the exception from the exception related information, such as fault address, context, etc ?