Compiler Error C2707
'identifier' : bad context for intrinsic function
The structured exception handling intrinsic functions are only valid in certain contexts. This is caused by one of the following conditions:
-
_exception_code() was called outside an exception filter or __except block
-
_exception_info() was called outside an exception filter
-
_abnormal_termination() was called outside a __finally block