Displaying 1 result from an estimated 1 matches for "thisexcept".
2016 Jun 10
2
Windows: How to catch C++ exceptions in runtime-compiled code?
...RC libraries, every throw results in an unhandled exception. The point of interest seems to be the throw handler for C++ exceptions (throw.cpp):
__declspec(noreturn) extern "C" void __stdcall
_CxxThrowException(void* pExceptionObject, _ThrowInfo* pThrowInfo)
{
...
RaiseException( ThisException.ExceptionCode,
ThisException.ExceptionFlags,
ThisException.NumberParameters,
(PULONG_PTR)&ThisException.params );
}
For some reason the call to RaiseException does not find or consider the existing catch handler correctly. Comparin...