_DebugHeapDelete Access Violation at termination
问题 I'm getting a weird access violation at the end of my main whose cause I'm having some difficulties finding. When shutting down my application I get an access violation in the following: xdebug // TEMPLATE FUNCTION _DebugHeapDelete template<class _Ty> void __CLRCALL_OR_CDECL _DebugHeapDelete(_Ty *_Ptr) { // delete from the debug CRT heap even if operator delete exists if (_Ptr != 0) { // worth deleting _Ptr->~_Ty(); // delete as _NORMAL_BLOCK, not _CRT_BLOCK, since we might have // facets