Now I never changed anything with my textureloader but now on exit of my game as it runs through all the default deconstructors it will sometimes crash when de-allocating a string!
I included the callstack here, I know some of these error messages can be very cryptic, but it just looks like its trying to release a string?
Any help, or any idea about how to go about debugging this would be greatly appreciated!
Unhandled exception at 0x63eaad4a (msvcp100d.dll) in AlphaProjectV2.exe: 0xC0000005: Access violation reading location 0x00000005.
> msvcp100d.dll!std::_Container_base12::_Orphan_all() Line 201 + 0x12 bytes C++
Here is the callstack
> msvcp100d.dll!std::_Container_base12::_Orphan_all() Line 201 + 0x12 bytes C++ AlphaProjectV2.exe!std::_String_val<char,std::allocator<char> >::~_String_val<char,std::allocator<char> >() Line 478 + 0xb bytes C++ AlphaProjectV2.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >() Line 755 + 0xf bytes C++ AlphaProjectV2.exe!TEXTUREMANAGER::~TEXTUREMANAGER() + 0x66 bytes C++ AlphaProjectV2.exe!GamePlayGraphics::~GamePlayGraphics() + 0xc6 bytes C++ AlphaProjectV2.exe!GraphicsEngine::~GraphicsEngine() + 0x69 bytes C++ AlphaProjectV2.exe!Game::~Game() + 0x78 bytes C++ AlphaProjectV2.exe!`dynamic atexit destructor for 'MyGame''() + 0x28 bytes C++ msvcr100d.dll!doexit(int code, int quick, int retcaller) Line 567 C msvcr100d.dll!exit(int code) Line 393 + 0xd bytes C AlphaProjectV2.exe!__tmainCRTStartup() Line 568 C AlphaProjectV2.exe!WinMainCRTStartup() Line 371 C kernel32.dll!767a339a() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] ntdll.dll!77b09ed2() ntdll.dll!77b09ea5()
Also the only string in that whole class is the filename and its not anything special.
string Filename; //file name for reloading