You can see MSDN doc : try, throw, and catch Statements (C++)
And from try-except statementt :
"For C++ programs, we recommend you use native C++ exception-handling: try, catch, and throw statements."
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I using following code:
void foo() throw(...)
{
EXCEPTION_RECORD _ER;
__try
{
if (some condition)
AfxThrowMemoryException();
}
__except(GetExceptionRecord(GetExceptionInformation(), &_ER), EXCEPTION_EXECUTE_HANDLER)
{
// do some thing
}
}
in function calling:
TRY
{
foo();
}
CATCH_ALL(e)
{
e->report();
}
END_CATCH_ALL
My problem is when throwing some exception the __except block executed instead outer try catch block
Thanks
You can see MSDN doc : try, throw, and catch Statements (C++)
And from try-except statementt :
"For C++ programs, we recommend you use native C++ exception-handling: try, catch, and throw statements."