Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - debug_new
Search - debug_new - List
ASocket示例 #include "stdafx.h" #include "s.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code ! ON_WM_CREATE() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; ///////////////////////////////////////////////////////////////////////////// // CMainFrame construction/destruction CMainFrame::CMainFrame() { // TODO: add member initialization code here } CMainFrame::~CMainFrame() { } int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
Date : 2011-06-28 Size : 62.82kb User : yanghaijun2008

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

挖雷 自己写的排雷类的代码文件 // 雷的初始化等函数。 /// /// /// /// /// /// /// /// /// /// /// //// #include "stdafx.h" #include "newmine.h" #include "MINE.h" #include <stdlib.h> #include <stdio.h> #include <time.h> #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__ #define new DEBUG_NEW #endif -newmine
Date : 2025-12-28 Size : 7.22mb User : lvdongfang

C++内存泄漏检测原理+实例源码下载,是一个跨平台的C++ 内存泄漏检测器的源程序,一个主要缺陷是不支持多线程。分配内存时不进行文件名复制,而只是保存其指针;效率较高(编译debug_new.cpp -Memory leak detection principle in C++ the+ instance of the source code download is a cross-platform source C++ memory leak detector, a main weakness is that does not support multi-threading. Allocate memory without the file name to copy, but only to save their pointers efficient (compiled debug_new.cpp
Date : 2025-12-28 Size : 121kb User : 陈有良
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.