登录
首页 » Windows开发 » 查看内存泄漏的类,使用方法: 把两个文件添加到工程里,在需要做检测的文件里加上#include "MemoryMgr.h" 如果是使用MFC的程序删掉#de...

查看内存泄漏的类,使用方法: 把两个文件添加到工程里,在需要做检测的文件里加上#include "MemoryMgr.h" 如果是使用MFC的程序删掉#de...

于 2022-03-25 发布 文件大小:4.27 kB
0 102
下载积分: 2 下载次数: 1

代码说明:

查看内存泄漏的类,使用方法: 把两个文件添加到工程里,在需要做检测的文件里加上#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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 电话本(手机信息的接收,送,保存,查看)等信息。
    电话本(手机信息的接收,发送,保存,查看)等信息。-phoneBook(send,check)
    2022-02-03 17:26:08下载
    积分:1
  • win用简易日志软件
    简易日志显示软件。 支持显示日志、保存日志到文件、udp方式接收日志,支持显示日志网络来源。 本地调用:任何win软件使用如下函数,即可向该软件发送日志数据,日志软件会显示并保存到指定文件中。 int WriteLog(DWORD LogType, char* lpszFormat, ...) { static HWND m_hWndLog = NULL; if (m_hWndLog == NULL) { m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWndLog == NULL) { char cCurPath[MAX_PATH]; if (GetCurrentDirectoryA(MAX_PATH, cCurPath) > 0) { char cExePath[MAX_PATH]; wsprintfA(cExePath, "%sstk1Log.exe", cCurPath); WinExec(cExePath, SW_SHOW); m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWndLog == NULL) { // AfxMessageBox("无法找到Stk1Log.exe用于显示日志!"); return -1; } } } } else { if (IsWindow(m_hWndLog) == FALSE) { m_hWndLog = NULL; m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWnd
    2022-07-25 17:36:54下载
    积分:1
  • the file system is designed to implement basic operations as follow: create fil...
    设计的文件系统实现下述的基本操作:建立文件;删除文件;打开文件;关闭文件; 可对文件设置保护措施(读,写,执行)。-the file system is designed to implement basic operations as follow: create file delete file open file close file set security measure
    2022-05-28 03:16:27下载
    积分:1
  • 批处理系统的作业操作,使用c++编写,利用了代码重用机制
    批处理系统的作业操作,使用c++编写,利用了代码重用机制-Batch operating system operation, use c++ Prepared, using a code reuse mechanism
    2023-04-21 05:10:03下载
    积分:1
  • 医院管理系统
    医院管理系统,c#,由前台和后台共同组成,可以连接数据库,用到的数据库是sqlsever.
    2023-08-15 09:45:03下载
    积分:1
  • Win API(Visual C++)项目和源程序文件,第十六章
    Win API(Visual C++)项目和源程序文件,第十六章-Win API (Visual C) projects and the source file, the 16th Chapter
    2022-01-21 04:24:36下载
    积分:1
  • 本程序用风险投资实现了随机选择的程序!感觉很好…
    本程序使用VC来实现随机选号的程序!!感觉还不错-This program uses VC to achieve Random Pick of the program!! Feeling pretty good!!
    2022-03-12 14:48:49下载
    积分:1
  • c++写的王子棋,带简单人工智能,基于win32sdk
    c++写的王子棋,带简单人工智能,基于win32sdk-c++ written by Prince game, with simple artificial intelligence, based on win32sdk
    2023-08-27 11:20:03下载
    积分:1
  • 网上收集的常用pragma指令的用法,对于使用其他c++库很值得学习
    网上收集的常用pragma指令的用法,对于使用其他c++库很值得学习-Online collection of common usage of pragma directives for the use of other c++ Library is worth learning
    2022-02-01 04:02:39下载
    积分:1
  • RushHour 游戏
    在 c #all 神韵 c# xnatwo 课上没有很好的游戏: enumtype 和 cars3 stagesinclude 指令
    2022-03-20 05:01:58下载
    积分:1
  • 696518资源总数
  • 104600会员总数
  • 46今日下载