EurekaLog
Menu

EurekaLog 7 Manual

EL shows wrong call stack at re-raise in C++ Builder application.

Problem:
EL shows partial call stack when reraising exception.

void test()
{
throw Exception("actual exception"); // this line is not showed in call stack
}

void test2()
{
try
{
test();
}
catch (const Exception& ex)
{
throw; // stack trace starts here - not useful enough
}
}

Explanation:
This is a limitation of C++ Builder version of EL. This feature is in our TO-DO list for the next major version.

Workaround:
You can re-throw the exception using the SetLastExceptionData procedure (able to doesn't lost the last exception stack data).

See more detailed data here:


Checked EL version: 6.0.18
Ticket ID: 378