'function' : function with inline assembly is not allowed to have NGWS runtime EH constructs
NGWS exception handling is not allowed in a function that also contains an __asm block.
The following sample generates C2714:
#using <mscorlib.dll> #include <stdio.h> int nakedfunc(void) { try { __asm { mov eax, 10h } } __finally { printf("Test\n"); } } // C2714 void main() { printf("Return value is %d\n", nakedfunc()); }