文件名称:vsFakeLeakTest
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-10-30
- 文件大小:
- 159kb
- 下载次数:
- 0次
- 提 供 者:
- n***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用vc开发mfc程序时,在调用了win32 dll(即不使用mfc的dll)时,mfc90.dll后于win32dll加载,在退出程序时mfc90.dll先释放,这时它会将win32dll中的全局变量,函数static变量视为内存泄露,而实际上随后win32dll卸载时会正常释放,导致内存泄露误报。
本程序演示了win32dll中的std::string的全局变量和函数内static变量的内存泄露误报-Using vc development mfc program, the call to the win32 dll (ie without using the mfc dll) when, mfc90.dll after win32dll loaded at program exit mfc90.dll first released, then it will be the global variables win32dll , function static variables as memory leaks, but in fact will subsequently unloaded win32dll normal release, resulting in a memory leak false positives. This program demonstrates the std :: string win32dll global variables and static variables within a function memory leak false positives
本程序演示了win32dll中的std::string的全局变量和函数内static变量的内存泄露误报-Using vc development mfc program, the call to the win32 dll (ie without using the mfc dll) when, mfc90.dll after win32dll loaded at program exit mfc90.dll first released, then it will be the global variables win32dll , function static variables as memory leaks, but in fact will subsequently unloaded win32dll normal release, resulting in a memory leak false positives. This program demonstrates the std :: string win32dll global variables and static variables within a function memory leak false positives
(系统自动生成,下载前可以参看下载内容)
下载文件列表
theMFCleakTest
..............\Debug
..............\.....\BuildLog.htm
..............\ReadMe.txt
..............\res
..............\resource.h
..............\...\theMFCleakTest.ico
..............\...\theMFCleakTest.rc2
..............\stdafx.cpp
..............\stdafx.h
..............\targetver.h
..............\theMFCleakTest.aps
..............\theMFCleakTest.cpp
..............\theMFCleakTest.h
..............\theMFCleakTest.rc
..............\theMFCleakTest.sln
..............\theMFCleakTest.suo
..............\theMFCleakTest.vcproj
..............\theMFCleakTestDlg.cpp
..............\theMFCleakTestDlg.h
win32dll
........\Debug
........\.....\BuildLog.htm
........\dllmain.cpp
........\ReadMe.txt
........\stdafx.cpp
........\stdafx.h
........\targetver.h
........\win32dll.cpp
........\win32dll.h
........\win32dll.sln
........\win32dll.suo
........\win32dll.vcproj