Compiler Warning (level 3) C4509

nonstandard extension used: 'function' uses SEH and 'object' has destructor

You should not use structured exception handling in functions that use objects with destructors. If an exception occurs, the destructor cannot be called. Use C++ exception handling instead.