How to obtain the native stacktrace from native exceptions caught in managed code

Posted by aaa on Stack Overflow See other posts from Stack Overflow or by aaa
Published on 2010-05-17T15:35:19Z Indexed on 2010/05/17 15:41 UTC
Read the original article Hit count: 398

Filed under:
|
|
|

I have some managed code that calls to a method inside some native DLL(i have the appropriate symbol files).
Sometimes, that native method throws an exception which I catch in my managed code. However, when i print the stacktrace from my caught exception, I see only managed code (the last frame is the call to the native code .. but it don't see the stacktrack within the native code).

How can I obtain the native callstack as well?
*When i'm debugging the code, i am able to step into the native code, and see the actuall call stack.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c#