News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

__exception_info( ) bug?

Started by RedGhost, December 17, 2006, 08:15:52 AM

Previous topic - Next topic

RedGhost

 
__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?

TimoVJL

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.
May the source be with you