VLD 调试动态链接库内存泄露
大家好,我现在想用VLD来检测TestDemo.exe和其依赖的AdapterDemo.dll的内存泄露。动态库和主程序都添加了依赖LIB和依赖头文件,编译通过,运行后如下显示。
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\TestDemo.exe”,已加载符号。
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\ntdll.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\kernel32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msacm32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\advapi32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\rpcrt4.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\secur32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\gdi32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\user32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msvcrt.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\winmm.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\KMpeg4.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\comdlg32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\shlwapi.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\shell32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\winspool.drv”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\oleaut32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\ole32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\ws2_32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\ws2help.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\wininet.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\normaliz.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\urlmon.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\iertutil.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\vld.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\AdapterDemo.dll”,已加载符号。
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\DVRSDK.dll”,已加载符号。
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\dsound.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\version.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\ddraw.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\dciman32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msdmo.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\iphlpapi.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\HCNetSDK.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\mfc42.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\PlayCtrl.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\libmodel.dll”,未使用调试信息生成二进制文件。
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\libcom.dll”,未使用调试信息生成二进制文件。
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\rtspApp.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\vnplayer.dll”,未使用调试信息生成二进制文件。
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\avifil32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msvfw32.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\AmrDll.dll”,未使用调试信息生成二进制文件。
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\wsock32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\oleacc.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msvcp60.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\oledlg.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\imm32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\lpk.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\usp10.dll”
“TestDemo.exe”: 已加载“C:\Program Files\Visual Leak Detector\bin\dbghelp.dll”
WARNING: Visual Leak Detector: A module, testdemo.exe, included in memory leak detection
does not have any debugging symbols available, or they could not be located.
Function names and/or line numbers for this module may not be available.
WARNING: Visual Leak Detector: A module, adapterdemo.dll, included in memory leak detection
does not have any debugging symbols available, or they could not be located.
Function names and/or line numbers for this module may not be available.
Visual Leak Detector Version 1.9d installed.
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\mfc42loc.dll”,未使用调试信息生成二进制文件。
TestDemo.exe 中的 0x01689565 处最可能的异常: 0xC0000005: 写入位置 0x00000000 时发生访问冲突
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\wdmaud.drv”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\setupapi.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\wintrust.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\crypt32.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msasn1.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\imagehlp.dll”
“TestDemo.exe”: 已卸载“C:\WINDOWS\system32\setupapi.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\msacm32.drv”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\midimap.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\uxtheme.dll”
“TestDemo.exe”: 已加载“D:\Program Files\360\360safe\safemon\safemon.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\psapi.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\MSCTF.dll”
“TestDemo.exe”: 已加载“C:\WINDOWS\system32\MSCTFIME.IME”
“TestDemo.exe”: 已加载“D:\Program Files\Kingsoft\PowerWordPE\CBSelectText.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\StreamTransClient.dll”
“TestDemo.exe”: 已加载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\SystemTransform.dll”
线程 'Win32 线程' (0x99c) 已退出,返回值为 0 (0x0)。
“TestDemo.exe”: 已卸载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\SystemTransform.dll”
“TestDemo.exe”: 已卸载“E:\Ad system\开发库\演进版本\适配器模块\AdapterDemo\Debug\StreamTransClient.dll”
Call Uninit**************
线程 'Win32 线程' (0x118) 已退出,返回值为 2 (0x2)。
线程 'Win32 线程' (0x594) 已退出,返回值为 2 (0x2)。
Detected memory leaks!
Dumping objects ->
{258} normal block at 0x04143740, 24 bytes long.
Data: < 6 6 6 > 10 36 14 04 10 36 14 04 10 36 14 04 00 00 00 00
{257} normal block at 0x041436C8, 56 bytes long.
Data: < 6 6 6 > C8 36 14 04 C8 36 14 04 C8 36 14 04 CD CD CD CD
{256} normal block at 0x04143668, 32 bytes long.
Data: < m > A4 6D 98 00 00 00 00 00 CD CD CD CD CD CD CD CD
{255} normal block at 0x04143610, 24 bytes long.
Data: <@7 @7 @7 > 40 37 14 04 40 37 14 04 40 37 14 04 CD CD CD CD
{254} normal block at 0x041435B8, 28 bytes long.
Data: < > 00 00 00 00 CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.
WARNING: Visual Leak Detector detected memory leaks!
显示了内存泄露,却没有显示在哪个cpp里,加载了符号文件,WARING却又说没有加载成功,我想请教下这是为什么,如何解决,谢谢了!