This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2712
cannot use __try in functions that require object unwinding
With /GX, a function with structured exception handling cannot have objects that require unwinding (destruction).
Possible solutions
- Move code that requires SEH to another function.
- Rewrite functions that use SEH to avoid the use of local variables and parameters that have destructors. Do not use SEH in constructors or destructors.
- Compile using /GX-.