when I run a application that using a recusive mechnism, I met
a error saying that "Demage after normal
block(#984)". The vc give the following information:
Loaded 'C:\WINNT\system32\ntdll.dll', no
matching symbolic information found.
Loaded symbols for 'C:\WINNT\system32\MFC42D.DLL' Loaded symbols for 'C:\WINNT\system32\MSVCRTD.DLL' Loaded 'C:\WINNT\system32\KERNEL32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\GDI32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\USER32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\SHELL32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\ADVAPI32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\SHLWAPI.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\msvcrt.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\comctl32.dll', no matching symbolic information found. Loaded symbols for 'C:\WINNT\system32\MFCO42D.DLL' Loaded 'C:\WINNT\system32\OLE32.DLL', no matching symbolic information found. Loaded symbols for 'C:\WINNT\system32\MSVCIRTD.DLL' Loaded 'C:\WINNT\system32\OLEAUT32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\imm32.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\entapi.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\psapi.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\NETAPI32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\secur32.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\ntdsapi.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\dnsapi.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\wsock32.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\ws2_32.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\ws2help.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\WLDAP32.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\netrap.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\samlib.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\MSCTF.DLL', no matching symbolic information found. Loaded 'C:\WINNT\system32\clbcatq.dll', no matching symbolic information found. Loaded symbols for 'D:\Document\codeproject\CFolderTreeCtrl_demo\WinSEC_061206_v0.1\CFolderTreeCtrl_demo\Debug\SEC_CryptoSoft.dll' Loaded 'C:\WINNT\system32\libeay32.dll', no matching symbolic information found. Loaded 'C:\WINNT\system32\wsock32.dll', no matching symbolic information found. memory check error at 0x003569EE = 0x00, should be 0xFD. memory check error at 0x003569EF = 0x00, should be 0xFD. The thread 0xB9C has exited with code 3 (0x3). The thread 0xC10 has exited with code 3 (0x3). Detected memory leaks! Dumping objects -> D:\Document\codeproject\CFolderTreeCtrl_demo\WinSEC_061206_v0.3\CFolderTreeCtrl_demo\sampleDlg.cpp(397) : {989} normal block at 0x00356A30, 8 bytes long. strcore.cpp(118) : {988} normal block at 0x003569D8, 22 bytes long. {986} normal block at 0x00356828, 10 bytes long. {985} normal block at 0x00354898, 8 bytes long. {982} normal block at 0x003567D0, 15 bytes long. {973} normal block at 0x003568F8, 15 bytes long. {794} normal block at 0x003568A0, 15 bytes long. D:\Document\codeproject\CFolderTreeCtrl_demo\WinSEC_061206_v0.3\CFolderTreeCtrl_demo\sampleDlg.cpp(98) : {781} client block at 0x00354F88, subtype 0, 240 bytes long. a CDialog object at $00354F88, 240 bytes long {778} normal block at 0x003564C0, 13 bytes long. {773} normal block at 0x00356468, 13 bytes long. {769} normal block at 0x00356410, 13 bytes long. {759} normal block at 0x003563C8, 11 bytes long. {748} normal block at 0x00356380, 11 bytes long. {738} normal block at 0x00356338, 11 bytes long. {729} normal block at 0x003562F0, 11 bytes long. {721} normal block at 0x003562A8, 11 bytes long. {714} normal block at 0x00356260, 11 bytes long. {708} normal block at 0x00356218, 11 bytes long. {703} normal block at 0x003561D0, 11 bytes long. {699} normal block at 0x00356188, 11 bytes long. {690} normal block at 0x00356140, 11 bytes long. {668} normal block at 0x003560F8, 11 bytes long. {647} normal block at 0x003560B0, 11 bytes long. {627} normal block at 0x00356068, 11 bytes long. {608} normal block at 0x00356020, 11 bytes long. {590} normal block at 0x00355FD8, 11 bytes long. {573} normal block at 0x00355F90, 11 bytes long. {557} normal block at 0x00355F48, 11 bytes long. {542} normal block at 0x00355F00, 11 bytes long. {528} normal block at 0x00355EB8, 11 bytes long. {515} normal block at 0x00355E70, 11 bytes long. {503} normal block at 0x00355E28, 11 bytes long. {492} normal block at 0x00355DE0, 11 bytes long. {482} normal block at 0x00355D98, 11 bytes long. {473} normal block at 0x00355D50, 11 bytes long. {465} normal block at 0x00355D08, 11 bytes long. {458} normal block at 0x00355CC0, 11 bytes long. {452} normal block at 0x00355C78, 11 bytes long. {447} normal block at 0x00355C30, 11 bytes long. {443} normal block at 0x00355BE8, 11 bytes long. {435} normal block at 0x00355BA0, 11 bytes long. {431} normal block at 0x00355B58, 11 bytes long. {424} normal block at 0x00355B10, 3 bytes long. {418} normal block at 0x00355AB8, 15 bytes long. {397} normal block at 0x00355A60, 15 bytes long. {377} normal block at 0x00355A08, 15 bytes long. {358} normal block at 0x003559B0, 15 bytes long. {340} normal block at 0x00355958, 15 bytes long. {323} normal block at 0x00355900, 15 bytes long. {307} normal block at 0x003558A8, 15 bytes long. {292} normal block at 0x00355850, 15 bytes long. {278} normal block at 0x003557F8, 15 bytes long. {265} normal block at 0x003557A0, 15 bytes long. {253} normal block at 0x00355748, 15 bytes long. {242} normal block at 0x003556F0, 15 bytes long. {232} normal block at 0x00355698, 15 bytes long. {223} normal block at 0x00355640, 15 bytes long. {215} normal block at 0x003555E8, 15 bytes long. {208} normal block at 0x00355590, 15 bytes long. {202} normal block at 0x00355538, 15 bytes long. {197} normal block at 0x003554E0, 15 bytes long. {193} normal block at 0x00355488, 15 bytes long. {188} normal block at 0x00355440, 3 bytes long. {173} normal block at 0x003553F8, 3 bytes long. {159} normal block at 0x003553B0, 3 bytes long. {146} normal block at 0x00355368, 3 bytes long. {134} normal block at 0x00355320, 3 bytes long. {123} normal block at 0x003552D8, 3 bytes long. {113} normal block at 0x00355290, 3 bytes long. {104} normal block at 0x00355248, 3 bytes long. {96} normal block at 0x00355200, 3 bytes long. {89} normal block at 0x003551B8, 3 bytes long. {83} normal block at 0x00355170, 3 bytes long. {78} normal block at 0x00355128, 3 bytes long. {74} normal block at 0x003550E0, 3 bytes long. D:\Document\codeproject\CFolderTreeCtrl_demo\WinSEC_061206_v0.3\CFolderTreeCtrl_demo\sampleDlg.cpp(95) : {66} client block at 0x00354BC0, subtype 0, 188 bytes long. a CDialog object at $00354BC0, 188 bytes long Object dump complete. The thread 0xC20 has exited with code 3 (0x3). The program 'D:\Document\codeproject\CFolderTreeCtrl_demo\WinSEC_061206_v0.3\CFolderTreeCtrl_demo\Debug\sample.exe' has exited with code 3 (0x3). but nothing can be found referring to this error. and i found
some which indicate that : A typical cause of this problem is that you are not leaving room for a nul terminator at the end of your strings. Does NameLengthU take account of the nul terminator? I check it all, and the problem was solved. (###) |
|