资 源 简 介
查看内存泄漏的类,使用方法: 把两个文件添加到工程里,在需要做检测的文件里加上#include "MemoryMgr.h"
如果是使用MFC的程序删掉#define new DEBUG_NEW一行,在MemoryMgr.cpp里最上边加上#include "stdafx.h"就可以了。结果会保存在MemoryLeakLog.txt里-See the class memory leaks, use the method: the two files added to the project, the testing needs to be done in the document together with the# include " MemoryMgr.h" If the procedure is to use the MFC deleted# define new DEBUG_NEW line, MemoryMgr. cpp with the most top# include " stdafx.h" on it. Results will be stored in MemoryLeakLog.txt Lane