2011年4月7日

windbg debug memory leakage

摘要: program:#include "stdlib.h"#include <crtdbg.h>void testLeak1(){new int;}void testLeak2(){malloc(123);}int _tmain(int argc, _TCHAR* argv[]){_CrtSetDbgFlag( _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF | _CRTDBG_CHECK_CRT_DF );malloc(100);testLe 阅读全文

posted @ 2011-04-07 00:51 cutepig 阅读(1703) 评论(0) 推荐(0) 编辑

导航