__try {
*(unsigned long *)0 = 1;
} __except( EXCEPTION_EXECUTE_HANDLER ) {
void *p = _exception_info( );
/* or */
_exception_info( );
}
gives me "error #2201: Bad context for intrinsic function '_exception_info'."
_exception_code( ) works fine.
Is it a bug or am I being stupid?
Microsoft says:
Quote
You can use the _exception_code function within the exception handler. However, you can use _exception_info only within the exception filter. The information it points to is generally on the stack and is no longer available when control is transferred to the exception handler.