NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2714

'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());
}