摘要:
源代码地址http://www.koders.com/cpp/fid0D70CAB44456E71247468C98A1D01A2F758153FE.aspx?s=md5.h 1 // FileZilla - a Windows ftp client 2 3 // Copyright (C) 2004 - Tim Kosse <tim.kosse@gmx.de> 4 5 // This program is free software; you can redistribute it and/or 6 // modify it under the terms of the GNU 阅读全文
摘要:
使用MFC提供的功能来检测内存泄露。使用方法:1)工程是MFC工程,或是工程的设置中有Use MFC in a Shared DLL,2)很多地方说是要定义以下宏#ifdef _DEBUG#define new DEBUG_NEW#endif但是我发现只要include <afx.h> 即可。(大家可以检测一下)3)可以在F5运行程序后,在output窗口中看到如下的内存泄露的显示。(只在debug下有用哦)4)如果有泄露,则显示如下:Detected memory leaks!Dumping objects ->{214} normal block at 0x00D9161 阅读全文