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 Warning (level 1) C4297

'function' : function assumed to not throw an exception (because of __declspec(nothrow), throw(), or it is extern "C")

A function contains a nothrow declaration and one or more throw statements. To resolve C4297, do not attempt to throw exceptions in functions that are declared with nothrow or to remove the nothrow specification.

The following sample generates C4297:

#pragma warning(1:4297)
void __declspec(nothrow) f1() {   // declared nothrow
// instead, try ...
// void f1() { 
throw 1;   // C4297
}
void main() {
}