Debug Skills
bestcastor
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Automatically attaching a debugger to a process every time it is launched
<br />Windows有一个叫机制可以帮助我们自动触发 任意可执行文件 的debug操作,可以看考http://blogs.msdn.com/b/greggm/archive/2005/02/21/377663.aspx<br /> <br /> 注意这段:<br /> “On Win 64, there are two copies of HKEY_LOCAL_MACHINE/Software (one for 32-bit apps, and one for 64-bit apps), and th原创 2011-06-02 16:39:00 · 579 阅读 · 0 评论 -
Visual C++中内存泄漏的检测
加入以下代码即可检测内存泄漏:#define _CRTDBG_MAP_ALLOC#include#include#ifdef _DEBUG#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)#endifinline void EnableMemLeakCheck(){ _CrtSetDbgFlag(_CrtSet转载 2011-06-23 13:31:00 · 727 阅读 · 0 评论
分享