hmm, I am using the crt to detect memory leak in VS2010. Hence when the program quit, it will appear in the output window
'test.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:\Windows\System32\nvoglv32.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x15f4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1544) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1644) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1650) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1664) has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
{135} normal block at 0x00D07418, 20 bytes long.
Data: < t t t > 18 74 D0 00 18 74 D0 00 18 74 D0 00 CD CD CD CD
{134} normal block at 0x00D073E0, 8 bytes long.
Data: < > E4 80 D0 00 00 00 00 00
{133} normal block at 0x00D080D8, 384 bytes long.
Data: < s > 84 83 1D 01 01 00 00 00 01 00 00 00 E0 73 D0 00
{132} normal block at 0x00581990, 4 bytes long.
Data: < > D8 80 D0 00
Object dump complete.
The program '[5504] test.exe: Native' has exited with code 0 (0x0).
Even when trying to break on the allocation for 135/134/132/133 nothing happens. I guess this is because it does not have the pdb files for the sfml portion.
The exact functions i am using to detect memory leaks are
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
_CrtSetBreakAlloc(a);
_CrtDumpMemoryLeaks();