I am calling an unmanaged C++ method from C#. When an exception occurs
in the C++ code, it gets caught in our C# code.
CSharpMethod()
{
try
{
NativeCPPMethod();
}
catch (Exception e)
{
// The stack trace printed here starts at CSharpMethod
Console.Writeline(e);
}
}
The only problem is that there is no stack trace info about where the
exception occured in the C++ code. In other words the stack trace
starts from where I called the C++ method, and ignores all the methods
that might have been called inside the C++ code.
Is there a technique to see the stack trace for the methods in the
native C++ code?
I am using .Net 2.0. I am using dllImport(...) to link with the native
C++;
Thanks for any ideas.
Mitch