6 Replies - 311 Views - Last Post: 05 November 2017 - 11:56 PM Rate Topic: -----

#1 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1377
  • View blog
  • Posts: 4,316
  • Joined: 20-March 10

How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 08:46 AM

Been a number of years since I had a problem I couldnt solve in C++

but usually my programs are fairly small engineering calculators and planners and usually I have no memory leaks due to simplicity of the programs and careful code management.

However this time Im writing a game and to facilitate that I wrote a DX gaming library so the game code would be easy to debug and again be easy to manage carefully...

I am 100% convinced that my problems lie in my library and its a small leak 7kb to be exact everytime it restarts the main loop ie everytime you run out of lives or would like to play another game at the end it eats 7kb of ram. I used a memory profiler MTuner to discover this.

When the game gracefully exits and it does all this memory is released as i use a delete on the game class that i new at the start of the program this new is outside the game loop so its not due to that.

I have tried to use _CrtDumpMemoryLeaks(); but I dont really know what I am supposed to be looking for I set it at a point when the game loop starts at level 1 and once before program exits so the data contains two sets of memory debug data.



The data


'gametest1.exe' (Win32): Loaded 'C:\Users\keith\Documents\Visual Studio 2017\Projects\gametest1\Debug\gametest1.exe'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\kernel32.dll'
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d2d1.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\DWrite.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\XAudio2_9.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avrt.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\propsys.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Microsoft Shared\Ink\tiptsf.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WindowsCodecs.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usermgrcli.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'. Symbols loaded.
'gametest1.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\igd10iumd32.dll'. Cannot find or open the PDB file.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ncrypt.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntasn1.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB file.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\AudioSes.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sxs.dll'. Symbols loaded.
mincore\com\oleaut32\dispatch\ups.cpp(2128)\OLEAUT32.dll!74655072: (caller: 7465FE4F) ReturnHr(1) tid(1ec) 8002801D Library not registered.
mincore\com\oleaut32\dispatch\ups.cpp(2128)\OLEAUT32.dll!74655072: (caller: 7465FE4F) ReturnHr(2) tid(1ec) 8002801D Library not registered.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.dll'. Symbols loaded.
'gametest1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.appcore.dll'. Symbols loaded.
Detected memory leaks!
Dumping objects ->
{455} normal block at 0x032EC7F8, 16 bytes long.
 Data: < F  PF   L   F  > 08 46 06 05 50 46 06 05 C8 4C 06 05 98 46 06 05 
{451} normal block at 0x0332C4F8, 64 bytes long.
 Data: <   ?   >   ?   ?> 00 00 80 3F BD BC BC 3E 93 92 12 3F 00 00 80 3F 
{423} normal block at 0x0B58C040, 15510944 bytes long.
 Data: <  C   a     u } > 92 00 43 00 86 00 61 00 A0 00 DA FF 75 00 7D FF 
{420} normal block at 0x0A5B5040, 965088 bytes long.
 Data: <                > 00 00 FF FF FF FF 02 00 02 00 FE FF FF FF 02 00 
{417} normal block at 0x0A402040, 1710136 bytes long.
 Data: <                > 00 00 00 00 FF FF 00 00 FF FF 00 00 02 00 FF FF 
{414} normal block at 0x032AF570, 52 bytes long.
 Data: <        h       > F8 D2 A3 06 20 D5 A3 06 68 16 98 08 90 18 98 08 
{413} normal block at 0x03330ED0, 468 bytes long.
 Data: <@    @  H 3     > 40 00 00 00 F8 40 00 00 48 82 33 03 00 00 00 00 
{412} normal block at 0x0A050068, 174080 bytes long.
 Data: <                > FF FF 00 00 DA FF DF FF CB FF C7 FF EB FF F0 FF 
{409} normal block at 0x0A0CE0C0, 516096 bytes long.
 Data: <                > 00 00 02 00 09 00 09 00 0A 00 0A 00 05 00 05 00 
{406} normal block at 0x08B3E688, 253200 bytes long.
 Data: <                > 15 00 18 00 0B 00 06 00 E4 FF E6 FF CC FF D0 FF 
{401} normal block at 0x08AA5898, 97012 bytes long.
 Data: <                > 1A 00 15 00 1B 00 1B 00 11 00 15 00 02 00 04 00 
{398} normal block at 0x09FBE040, 555468 bytes long.
 Data: <N v   o       x > 4E 00 76 00 88 00 6F 00 84 00 9D 00 90 00 78 00 
{393} normal block at 0x08AD30F0, 186368 bytes long.
 Data: <                > 08 00 07 00 FA FF F8 FF F4 FF F5 FF 00 00 FD FF 
{388} normal block at 0x08A80068, 153600 bytes long.
 Data: <                > D8 FF D4 FF E4 FF DD FF DD FF DE FF D9 FF D5 FF 
{383} normal block at 0x0334D848, 33942 bytes long.
 Data: <T     . K < & ! > 54 FF 01 FF 06 FF 2E FF 4B FF 3C FF 26 FF 21 FF 
{378} normal block at 0x03344DF0, 35368 bytes long.
 Data: <            i ; > 01 00 FD FF F5 FF E1 FF C0 FF A0 FF 69 FF 3B FF 
{373} normal block at 0x03338248, 16632 bytes long.
 Data: <J   H % = K L p > 4A FF 08 FF 48 FF 25 FF 3D FF 4B FF 4C FF 70 FF 
{348} normal block at 0x032AF2D0, 48 bytes long.
 Data: <P r e s s   t h > 50 00 72 00 65 00 73 00 73 00 20 00 74 00 68 00 
{347} normal block at 0x0330D6E0, 8 bytes long.
 Data: <  /     > F8 FD 2F 03 00 00 00 00 
{346} normal block at 0x0330C8D0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{345} normal block at 0x0330D718, 8 bytes long.
 Data: <  /     > D8 FD 2F 03 00 00 00 00 
{344} normal block at 0x032FFCB8, 352 bytes long.
 Data: <  TD  aC   C  HC> 00 80 54 44 00 00 61 43 00 00 AF 43 00 00 48 43 
{343} normal block at 0x032AF6F0, 48 bytes long.
 Data: <P r e s s   t h > 50 00 72 00 65 00 73 00 73 00 20 00 74 00 68 00 
{342} normal block at 0x032AF750, 48 bytes long.
 Data: <P r e s s   t h > 50 00 72 00 65 00 73 00 73 00 20 00 74 00 68 00 
{341} normal block at 0x0330CE70, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{340} normal block at 0x0330D788, 8 bytes long.
 Data: <@ ,     > 40 FC 2C 03 00 00 00 00 
{339} normal block at 0x0330D910, 8 bytes long.
 Data: <  ,     > 20 FC 2C 03 00 00 00 00 
{334} normal block at 0x032CFC18, 72 bytes long.
 Data: <  o       0 p 0 > FC F7 6F 00 00 CD CD CD 10 D9 30 03 70 CE 30 03 
{329} normal block at 0x0330C740, 32 bytes long.
 Data: <L i v e s :   3 > 4C 00 69 00 76 00 65 00 73 00 3A 00 20 00 33 00 
{328} normal block at 0x032E1050, 8 bytes long.
 Data: <  /     > A0 FD 2F 03 00 00 00 00 
{327} normal block at 0x0330CB50, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{326} normal block at 0x032E0FA8, 8 bytes long.
 Data: <  /     > 80 FD 2F 03 00 00 00 00 
{324} normal block at 0x0330D000, 32 bytes long.
 Data: <L i v e s :   3 > 4C 00 69 00 76 00 65 00 73 00 3A 00 20 00 33 00 
{323} normal block at 0x0330CFB0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{322} normal block at 0x0328CEE0, 8 bytes long.
 Data: <  ,     > D8 FA 2C 03 00 00 00 00 
{321} normal block at 0x032E1018, 8 bytes long.
 Data: <  ,     > B8 FA 2C 03 00 00 00 00 
{314} normal block at 0x032CFAB0, 72 bytes long.
 Data: <  o       .   0 > FC F7 6F 00 01 CD CD CD 18 10 2E 03 B0 CF 30 03 
{311} normal block at 0x0330CE20, 32 bytes long.
 Data: <S c o r e :   0 > 53 00 63 00 6F 00 72 00 65 00 3A 00 20 00 30 00 
{310} normal block at 0x032E0F70, 8 bytes long.
 Data: <H /     > 48 FD 2F 03 00 00 00 00 
{309} normal block at 0x0330C830, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{308} normal block at 0x032E0E90, 8 bytes long.
 Data: <( /     > 28 FD 2F 03 00 00 00 00 
{306} normal block at 0x0330CA10, 32 bytes long.
 Data: <S c o r e :   0 > 53 00 63 00 6F 00 72 00 65 00 3A 00 20 00 30 00 
{305} normal block at 0x0330CBF0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{304} normal block at 0x032E0BB8, 8 bytes long.
 Data: <  ,     > B8 FC 2C 03 00 00 00 00 
{303} normal block at 0x032E0950, 8 bytes long.
 Data: <  ,     > 98 FC 2C 03 00 00 00 00 
{296} normal block at 0x032CFC90, 72 bytes long.
 Data: <  o     P .   0 > FC F7 6F 00 01 CD CD CD 50 09 2E 03 F0 CB 30 03 
{295} normal block at 0x0330CF60, 32 bytes long.
 Data: <P e t   R e s c > 50 00 65 00 74 00 20 00 52 00 65 00 73 00 63 00 
{294} normal block at 0x032E0D40, 8 bytes long.
 Data: <  /     > F0 FC 2F 03 00 00 00 00 
{293} normal block at 0x032AA6F0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{292} normal block at 0x032E0B48, 8 bytes long.
 Data: <  /     > D0 FC 2F 03 00 00 00 00 
{289} normal block at 0x032AA600, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{288} normal block at 0x032AA6A0, 32 bytes long.
 Data: <P e t   R e s c > 50 00 65 00 74 00 20 00 52 00 65 00 73 00 63 00 
{287} normal block at 0x032AA5B0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{286} normal block at 0x032E0A68, 8 bytes long.
 Data: <  ,     > 10 FF 2C 03 00 00 00 00 
{285} normal block at 0x032E0D78, 8 bytes long.
 Data: <  ,     > F0 FE 2C 03 00 00 00 00 
{280} normal block at 0x032CFEE8, 72 bytes long.
 Data: <  o     x .   * > FC F7 6F 00 00 CD CD CD 78 0D 2E 03 B0 A5 2A 03 
{279} normal block at 0x032E0B80, 12 bytes long.
 Data: <        0   > D8 E4 FE 04 A8 E3 FE 04 30 EA FE 04 
{277} normal block at 0x032E0D08, 8 bytes long.
 Data: <        > E4 D8 AB 00 C8 D5 AB 00 
{276} normal block at 0x032E0AA0, 8 bytes long.
 Data: <        > CC D8 AB 00 C8 D5 AB 00 
{274} normal block at 0x032E09F8, 8 bytes long.
 Data: <        > B4 D8 AB 00 C8 D5 AB 00 
{273} normal block at 0x03304740, 1008 bytes long.
 Data: <  zD   C    Hz  > 00 00 7A 44 00 00 DC 43 00 CC CC CC 48 7A 02 05 
{272} normal block at 0x032FB178, 252 bytes long.
 Data: <( + ( +   + h + > 28 11 2B 03 28 13 2B 03 E8 13 2B 03 68 10 2B 03 
{208} normal block at 0x032EC678, 16 bytes long.
 Data: <        Z   P   > A4 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{207} normal block at 0x032EC878, 16 bytes long.
 Data: <        Z   P   > 94 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{206} normal block at 0x032EC5F8, 16 bytes long.
 Data: <        Z   P   > 84 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{205} normal block at 0x032EC5B8, 16 bytes long.
 Data: <t       Z   P   > 74 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{204} normal block at 0x032B06A8, 16 bytes long.
 Data: <T       6   P   > 54 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{203} normal block at 0x032B05E8, 16 bytes long.
 Data: <d       6   P   > 64 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{202} normal block at 0x032B0568, 16 bytes long.
 Data: <T       6   P   > 54 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{201} normal block at 0x032B0CA8, 16 bytes long.
 Data: <D       6   P   > 44 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{200} normal block at 0x032B0BE8, 16 bytes long.
 Data: <8       M       > 38 D8 AB 00 C8 D5 AB 00 4D 01 00 00 C8 00 00 00 
{199} normal block at 0x032B0D28, 16 bytes long.
 Data: <(       -   <   > 28 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{198} normal block at 0x032B0B28, 16 bytes long.
 Data: <        -   <   > 18 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{197} normal block at 0x032B0B68, 16 bytes long.
 Data: <        -   <   > 08 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{196} normal block at 0x032B0968, 16 bytes long.
 Data: <        -   <   > F8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{195} normal block at 0x032B0BA8, 16 bytes long.
 Data: <        -   <   > E8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{194} normal block at 0x032B05A8, 16 bytes long.
 Data: <        -   <   > D8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{193} normal block at 0x032B0C28, 16 bytes long.
 Data: <        -   <   > C8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{192} normal block at 0x032B0828, 16 bytes long.
 Data: <        -   <   > B8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{191} normal block at 0x032B0668, 16 bytes long.
 Data: <        -   <   > A8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{190} normal block at 0x032B0AA8, 16 bytes long.
 Data: <        -   <   > 98 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{189} normal block at 0x032B0928, 16 bytes long.
 Data: <        Z   P   > 84 D7 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{188} normal block at 0x032B08E8, 16 bytes long.
 Data: <p       Z   P   > 70 D7 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{187} normal block at 0x032B0AE8, 16 bytes long.
 Data: <d           5   > 64 D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{186} normal block at 0x032B0C68, 16 bytes long.
 Data: <X           5   > 58 D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{185} normal block at 0x032B09E8, 16 bytes long.
 Data: <L           5   > 4C D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{184} normal block at 0x032B07E8, 16 bytes long.
 Data: <<       P   F   > 3C D7 AB 00 C8 D5 AB 00 50 00 00 00 46 00 00 00 
{183} normal block at 0x032B0628, 16 bytes long.
 Data: <,       P   F   > 2C D7 AB 00 C8 D5 AB 00 50 00 00 00 46 00 00 00 
{182} normal block at 0x032B0768, 16 bytes long.
 Data: <        -   <   > 1C D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{181} normal block at 0x032B08A8, 16 bytes long.
 Data: <        -   <   > 0C D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{180} normal block at 0x032B09A8, 16 bytes long.
 Data: <        <   0   > F4 D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{179} normal block at 0x032B06E8, 16 bytes long.
 Data: <        <   0   > DC D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{178} normal block at 0x032B0A68, 16 bytes long.
 Data: <        <   0   > C4 D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{177} normal block at 0x032B0A28, 16 bytes long.
 Data: <        <   0   > AC D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{176} normal block at 0x032B07A8, 16 bytes long.
 Data: <        -   <   > A0 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{175} normal block at 0x032B0868, 16 bytes long.
 Data: <        -   <   > 94 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{174} normal block at 0x032B0728, 16 bytes long.
 Data: <        -   <   > 88 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{173} normal block at 0x032B0CE8, 16 bytes long.
 Data: <|       -   <   > 7C D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{172} normal block at 0x032B12A8, 16 bytes long.
 Data: <p               > 70 D6 AB 00 C8 D5 AB 00 82 00 00 00 82 00 00 00 
{171} normal block at 0x032B0F68, 16 bytes long.
 Data: <d               > 64 D6 AB 00 C8 D5 AB 00 82 00 00 00 82 00 00 00 
{170} normal block at 0x032B10A8, 16 bytes long.
 Data: <P       Z   P   > 50 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{169} normal block at 0x032B0F28, 16 bytes long.
 Data: <<       Z   P   > 3C D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{168} normal block at 0x032B1068, 16 bytes long.
 Data: <(       Z   P   > 28 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{167} normal block at 0x032B13E8, 16 bytes long.
 Data: <        Z   P   > 18 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{166} normal block at 0x032B1328, 16 bytes long.
 Data: <        Z   P   > 08 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{165} normal block at 0x032B1128, 16 bytes long.
 Data: <        Z   P   > F8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{164} normal block at 0x032B10E8, 16 bytes long.
 Data: <        Z   P   > E8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{163} normal block at 0x032B0EE8, 16 bytes long.
 Data: <        Z   P   > D8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{162} normal block at 0x0329DDE8, 8 bytes long.
 Data: <  (     > B8 B4 28 03 00 00 00 00 
{161} normal block at 0x0329E130, 8 bytes long.
 Data: <  (     > A8 B4 28 03 00 00 00 00 
{160} normal block at 0x0329DEC8, 8 bytes long.
 Data: <P (     > 50 B4 28 03 00 00 00 00 
{159} normal block at 0x0329DF00, 8 bytes long.
 Data: <@ (     > 40 B4 28 03 00 00 00 00 
{158} normal block at 0x0329DFE0, 8 bytes long.
 Data: <0 (     > 30 B4 28 03 00 00 00 00 
{157} normal block at 0x0329DC98, 8 bytes long.
 Data: <  (     > 20 B4 28 03 00 00 00 00 
{156} normal block at 0x0329E2B8, 8 bytes long.
 Data: <  (     > 10 B4 28 03 00 00 00 00 
{155} normal block at 0x0329E280, 8 bytes long.
 Data: <  (     > F0 B3 28 03 00 00 00 00 
{154} normal block at 0x0329E2F0, 8 bytes long.
 Data: <  (     > D0 B3 28 03 00 00 00 00 
{153} normal block at 0x0328AC90, 8 bytes long.
 Data: <d (     > 64 B3 28 03 00 00 00 00 
{152} normal block at 0x0328B348, 412 bytes long.
 Data: <4     f         > 34 DA AB 00 8C 09 66 00 00 01 00 00 20 00 00 00 
Object dump complete.
The thread 0x3b90 has exited with code 0 (0x0).
The thread 0x2f58 has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
{423} normal block at 0x0B58C040, 15510944 bytes long.
 Data: <  C   a     u } > 92 00 43 00 86 00 61 00 A0 00 DA FF 75 00 7D FF 
{420} normal block at 0x0A5B5040, 965088 bytes long.
 Data: <                > 00 00 FF FF FF FF 02 00 02 00 FE FF FF FF 02 00 
{417} normal block at 0x0A402040, 1710136 bytes long.
 Data: <                > 00 00 00 00 FF FF 00 00 FF FF 00 00 02 00 FF FF 
{412} normal block at 0x0A050068, 174080 bytes long.
 Data: <                > FF FF 00 00 DA FF DF FF CB FF C7 FF EB FF F0 FF 
{409} normal block at 0x0A0CE0C0, 516096 bytes long.
 Data: <                > 00 00 02 00 09 00 09 00 0A 00 0A 00 05 00 05 00 
{406} normal block at 0x08B3E688, 253200 bytes long.
 Data: <                > 15 00 18 00 0B 00 06 00 E4 FF E6 FF CC FF D0 FF 
{401} normal block at 0x08AA5898, 97012 bytes long.
 Data: <                > 1A 00 15 00 1B 00 1B 00 11 00 15 00 02 00 04 00 
{398} normal block at 0x09FBE040, 555468 bytes long.
 Data: <N v   o       x > 4E 00 76 00 88 00 6F 00 84 00 9D 00 90 00 78 00 
{393} normal block at 0x08AD30F0, 186368 bytes long.
 Data: <                > 08 00 07 00 FA FF F8 FF F4 FF F5 FF 00 00 FD FF 
{388} normal block at 0x08A80068, 153600 bytes long.
 Data: <                > D8 FF D4 FF E4 FF DD FF DD FF DE FF D9 FF D5 FF 
{383} normal block at 0x0334D848, 33942 bytes long.
 Data: <T     . K < & ! > 54 FF 01 FF 06 FF 2E FF 4B FF 3C FF 26 FF 21 FF 
{378} normal block at 0x03344DF0, 35368 bytes long.
 Data: <            i ; > 01 00 FD FF F5 FF E1 FF C0 FF A0 FF 69 FF 3B FF 
{373} normal block at 0x03338248, 16632 bytes long.
 Data: <J   H % = K L p > 4A FF 08 FF 48 FF 25 FF 3D FF 4B FF 4C FF 70 FF 
{342} normal block at 0x032AF750, 48 bytes long.
 Data: <P r e s s   t h > 50 00 72 00 65 00 73 00 73 00 20 00 74 00 68 00 
{341} normal block at 0x0330CE70, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{340} normal block at 0x0330D788, 8 bytes long.
 Data: <@ ,     > 40 FC 2C 03 00 00 00 00 
{339} normal block at 0x0330D910, 8 bytes long.
 Data: <  ,     > 20 FC 2C 03 00 00 00 00 
{334} normal block at 0x032CFC18, 72 bytes long.
 Data: <  o       0 p 0 > FC F7 6F 00 00 CD CD CD 10 D9 30 03 70 CE 30 03 
{324} normal block at 0x0330D000, 32 bytes long.
 Data: <L i v e s :   3 > 4C 00 69 00 76 00 65 00 73 00 3A 00 20 00 33 00 
{323} normal block at 0x0330CFB0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{322} normal block at 0x0328CEE0, 8 bytes long.
 Data: <  ,     > D8 FA 2C 03 00 00 00 00 
{321} normal block at 0x032E1018, 8 bytes long.
 Data: <  ,     > B8 FA 2C 03 00 00 00 00 
{314} normal block at 0x032CFAB0, 72 bytes long.
 Data: <  o       .   0 > FC F7 6F 00 01 CD CD CD 18 10 2E 03 B0 CF 30 03 
{306} normal block at 0x0330CA10, 32 bytes long.
 Data: <S c o r e :   0 > 53 00 63 00 6F 00 72 00 65 00 3A 00 20 00 30 00 
{305} normal block at 0x0330CBF0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{304} normal block at 0x032E0BB8, 8 bytes long.
 Data: <  ,     > B8 FC 2C 03 00 00 00 00 
{303} normal block at 0x032E0950, 8 bytes long.
 Data: <  ,     > 98 FC 2C 03 00 00 00 00 
{296} normal block at 0x032CFC90, 72 bytes long.
 Data: <  o     P .   0 > FC F7 6F 00 01 CD CD CD 50 09 2E 03 F0 CB 30 03 
{288} normal block at 0x032AA6A0, 32 bytes long.
 Data: <P e t   R e s c > 50 00 65 00 74 00 20 00 52 00 65 00 73 00 63 00 
{287} normal block at 0x032AA5B0, 32 bytes long.
 Data: <S n a p   I T C > 53 00 6E 00 61 00 70 00 20 00 49 00 54 00 43 00 
{286} normal block at 0x032E0A68, 8 bytes long.
 Data: <  ,     > 10 FF 2C 03 00 00 00 00 
{285} normal block at 0x032E0D78, 8 bytes long.
 Data: <  ,     > F0 FE 2C 03 00 00 00 00 
{280} normal block at 0x032CFEE8, 72 bytes long.
 Data: <  o     x .   * > FC F7 6F 00 00 CD CD CD 78 0D 2E 03 B0 A5 2A 03 
{277} normal block at 0x032E0D08, 8 bytes long.
 Data: <        > E4 D8 AB 00 C8 D5 AB 00 
{276} normal block at 0x032E0AA0, 8 bytes long.
 Data: <        > CC D8 AB 00 C8 D5 AB 00 
{274} normal block at 0x032E09F8, 8 bytes long.
 Data: <        > B4 D8 AB 00 C8 D5 AB 00 
{208} normal block at 0x032EC678, 16 bytes long.
 Data: <        Z   P   > A4 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{207} normal block at 0x032EC878, 16 bytes long.
 Data: <        Z   P   > 94 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{206} normal block at 0x032EC5F8, 16 bytes long.
 Data: <        Z   P   > 84 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{205} normal block at 0x032EC5B8, 16 bytes long.
 Data: <t       Z   P   > 74 D8 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{204} normal block at 0x032B06A8, 16 bytes long.
 Data: <T       6   P   > 54 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{203} normal block at 0x032B05E8, 16 bytes long.
 Data: <d       6   P   > 64 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{202} normal block at 0x032B0568, 16 bytes long.
 Data: <T       6   P   > 54 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{201} normal block at 0x032B0CA8, 16 bytes long.
 Data: <D       6   P   > 44 D8 AB 00 C8 D5 AB 00 36 00 00 00 50 00 00 00 
{200} normal block at 0x032B0BE8, 16 bytes long.
 Data: <8       M       > 38 D8 AB 00 C8 D5 AB 00 4D 01 00 00 C8 00 00 00 
{199} normal block at 0x032B0D28, 16 bytes long.
 Data: <(       -   <   > 28 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{198} normal block at 0x032B0B28, 16 bytes long.
 Data: <        -   <   > 18 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{197} normal block at 0x032B0B68, 16 bytes long.
 Data: <        -   <   > 08 D8 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{196} normal block at 0x032B0968, 16 bytes long.
 Data: <        -   <   > F8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{195} normal block at 0x032B0BA8, 16 bytes long.
 Data: <        -   <   > E8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{194} normal block at 0x032B05A8, 16 bytes long.
 Data: <        -   <   > D8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{193} normal block at 0x032B0C28, 16 bytes long.
 Data: <        -   <   > C8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{192} normal block at 0x032B0828, 16 bytes long.
 Data: <        -   <   > B8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{191} normal block at 0x032B0668, 16 bytes long.
 Data: <        -   <   > A8 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{190} normal block at 0x032B0AA8, 16 bytes long.
 Data: <        -   <   > 98 D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{189} normal block at 0x032B0928, 16 bytes long.
 Data: <        Z   P   > 84 D7 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{188} normal block at 0x032B08E8, 16 bytes long.
 Data: <p       Z   P   > 70 D7 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{187} normal block at 0x032B0AE8, 16 bytes long.
 Data: <d           5   > 64 D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{186} normal block at 0x032B0C68, 16 bytes long.
 Data: <X           5   > 58 D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{185} normal block at 0x032B09E8, 16 bytes long.
 Data: <L           5   > 4C D7 AB 00 C8 D5 AB 00 1E 00 00 00 35 00 00 00 
{184} normal block at 0x032B07E8, 16 bytes long.
 Data: <<       P   F   > 3C D7 AB 00 C8 D5 AB 00 50 00 00 00 46 00 00 00 
{183} normal block at 0x032B0628, 16 bytes long.
 Data: <,       P   F   > 2C D7 AB 00 C8 D5 AB 00 50 00 00 00 46 00 00 00 
{182} normal block at 0x032B0768, 16 bytes long.
 Data: <        -   <   > 1C D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{181} normal block at 0x032B08A8, 16 bytes long.
 Data: <        -   <   > 0C D7 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{180} normal block at 0x032B09A8, 16 bytes long.
 Data: <        <   0   > F4 D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{179} normal block at 0x032B06E8, 16 bytes long.
 Data: <        <   0   > DC D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{178} normal block at 0x032B0A68, 16 bytes long.
 Data: <        <   0   > C4 D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{177} normal block at 0x032B0A28, 16 bytes long.
 Data: <        <   0   > AC D6 AB 00 C8 D5 AB 00 3C 00 00 00 30 00 00 00 
{176} normal block at 0x032B07A8, 16 bytes long.
 Data: <        -   <   > A0 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{175} normal block at 0x032B0868, 16 bytes long.
 Data: <        -   <   > 94 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{174} normal block at 0x032B0728, 16 bytes long.
 Data: <        -   <   > 88 D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{173} normal block at 0x032B0CE8, 16 bytes long.
 Data: <|       -   <   > 7C D6 AB 00 C8 D5 AB 00 2D 00 00 00 3C 00 00 00 
{172} normal block at 0x032B12A8, 16 bytes long.
 Data: <p               > 70 D6 AB 00 C8 D5 AB 00 82 00 00 00 82 00 00 00 
{171} normal block at 0x032B0F68, 16 bytes long.
 Data: <d               > 64 D6 AB 00 C8 D5 AB 00 82 00 00 00 82 00 00 00 
{170} normal block at 0x032B10A8, 16 bytes long.
 Data: <P       Z   P   > 50 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{169} normal block at 0x032B0F28, 16 bytes long.
 Data: <<       Z   P   > 3C D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{168} normal block at 0x032B1068, 16 bytes long.
 Data: <(       Z   P   > 28 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{167} normal block at 0x032B13E8, 16 bytes long.
 Data: <        Z   P   > 18 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{166} normal block at 0x032B1328, 16 bytes long.
 Data: <        Z   P   > 08 D6 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{165} normal block at 0x032B1128, 16 bytes long.
 Data: <        Z   P   > F8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{164} normal block at 0x032B10E8, 16 bytes long.
 Data: <        Z   P   > E8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
{163} normal block at 0x032B0EE8, 16 bytes long.
 Data: <        Z   P   > D8 D5 AB 00 C8 D5 AB 00 5A 00 00 00 50 00 00 00 
Object dump complete.
The thread 0x2744 has exited with code 0 (0x0).
The thread 0x2f14 has exited with code 0 (0x0).
The thread 0x24fc has exited with code 0 (0x0).
The thread 0x434 has exited with code 0 (0x0).
The thread 0x1684 has exited with code 0 (0x0).
The thread 0x36cc has exited with code 0 (0x0).
The thread 0x3570 has exited with code 0 (0x0).
The thread 0x2d2c has exited with code 0 (0x0).
The thread 0x13f8 has exited with code 0 (0x0).
The program '[968] gametest1.exe' has exited with code 0 (0x0).




I am looking for anyone with experience on interpreting this type of data probably Skydiver

but anyone can play... :)

sorry for the technicality of the question but things with me are never simple.

Is This A Good Question/Topic? 0
  • +

Replies To: How to use _CrtDumpMemoryLeaks(); in Visual Studio

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 5894
  • View blog
  • Posts: 20,114
  • Joined: 05-May 12

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 09:40 AM

This section of the MSDN documentation may help by giving you more meaningful information about where the blocks were allocated:
new, delete, and _CLIENT_BLOCKs in the C++ debug heap
Was This Post Helpful? 1
  • +
  • -

#3 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 5894
  • View blog
  • Posts: 20,114
  • Joined: 05-May 12

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 09:47 AM

And this was the link that I was really looking for: Finding Memory Leaks Using the CRT Library
Was This Post Helpful? 1
  • +
  • -

#4 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1377
  • View blog
  • Posts: 4,316
  • Joined: 20-March 10

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 09:55 AM

Ah thank you...

The thing I dont get in the data it says 'normal memory block' is this a leak or is it normal i suppose ?
Was This Post Helpful? 0
  • +
  • -

#5 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 5894
  • View blog
  • Posts: 20,114
  • Joined: 05-May 12

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 10:06 AM

Normal means that it was allocated by your program to run your code, as opposed to by the CRT to support itself.
Was This Post Helpful? 1
  • +
  • -

#6 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1377
  • View blog
  • Posts: 4,316
  • Joined: 20-March 10

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 24 October 2017 - 11:26 AM

Right normal means it is a memory leak...

looking at those data blocks it looks like the leaks are coming from the TextObject class which is used in the Library to write text via DX onto the screen this at least gives me a place to start looking...

Good news and I will let you know what I find....

Thanks again...
Was This Post Helpful? 0
  • +
  • -

#7 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1377
  • View blog
  • Posts: 4,316
  • Joined: 20-March 10

Re: How to use _CrtDumpMemoryLeaks(); in Visual Studio

Posted 05 November 2017 - 11:56 PM

Update on this Managed to fix all memory leaks...

by using Jim's suggestion on switching from raw pointers to smart pointers had considerable library redesign to do to achieve this as well as actual game program updates to accept the smart pointers most of the pointers are now std::unique_ptr except for the window class which is std::shared_ptr due to the necessary passing around the various levels of this object.

Thank you to Skydiver and jimblumberg for your considerable technical knowledge on this subject.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1