cannot use __try in functions that require object unwinding
You cannot have objects that require unwinding in a function with structured exception handling.
To avoid this error message, compile using the /GX- option.
The error can be avoided when using the /GX option by not having local variables or parameters with types that have destructors in a function that uses structured exception handling (SEH). Furthermore, SEH cannot be used in constructors or destructors if using /GX. Code that requires SEH can also be moved to another function in order to avoid the error.