Compiler Error C2712 (Windows CE 5.0)
cannot use __try in functions that require object unwinding
With /GX - Enable Exception Handling, a function with structured exception handling cannot have objects that require unwinding (destruction).
The following list shows possible solutions for this error.
- 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-.
Send Feedback on this topic to the authors