When exiting an application made with SFML 2.0 in VS 2010, I get this error
'UntitledSpirit.exe': Loaded 'B:\FacepalmAssociation\UntitledSpirit.exe', Symbols loaded.
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'B:\FacepalmAssociation\UntitledSpirit\Debug\sfml-system-d-2.dll', Symbols loaded.
'UntitledSpirit.exe': Loaded 'B:\FacepalmAssociation\UntitledSpirit\Debug\sfml-window-d-2.dll', Symbols loaded.
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'B:\FacepalmAssociation\UntitledSpirit\Debug\sfml-graphics-d-2.dll', Symbols loaded.
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\atiglpxx.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\atioglxx.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\atigktxx.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\aticfx32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\atiadlxy.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\wtsapi32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\hid.dll', Cannot find or open the PDB file
'UntitledSpirit.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file
Windows has triggered a breakpoint in UntitledSpirit.exe.
This may be due to a corruption of the heap, which indicates a bug in UntitledSpirit.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while UntitledSpirit.exe has focus.
The output window may have more diagnostic information.
The program '[4372] UntitledSpirit.exe: Native' has exited with code 0 (0x0).
It happens only when I close the window created by SFML, and happens when doing 'return EXIT_SUCCESS' (Especifically when it is going through a destructor method of a class called TtfText I made. The method is empty and does not contain any instructions). I guess it's important to mention that this didn't happen with SFML 1.6. This is the header of the class, without the methods I implemented:
class TtfText :
public Entity
{
public:
static sf::Font* currentFont; //By the way this is allocated with 'new' in TtfText.cpp
TtfText(void);
~TtfText(void);
TtfText(sf::String,int size,int,int);
private:
sf::Text text;
float duration;
float fade;
int startTime;
float fadeSpeed;
};
VS2010 takes me to dbgheap.c, line 2036, in CrtIsValidHeapPointer:
extern "C" _CRTIMP int __cdecl _CrtIsValidHeapPointer(
const void * pUserData
)
{
if (!pUserData)
return FALSE;
if (!_CrtIsValidPointer(pHdr(pUserData), sizeof(_CrtMemBlockHeader), FALSE))
return FALSE;
return HeapValidate( _crtheap, 0, pHdr(pUserData) );
} //This is line 2036
If I don't create any objects of the class TtfText, the error doesn't happen. Does anyone have ANY idea why this could be happening?