且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以在MFC应用程序的调试版本中替换内存分配器?

更新时间:2023-10-16 16:01:22

您可以通过在stdafx.h末尾重新定义DEBUG_NEW来停止MFC对new的钩住.

You can stop the MFC hooking of new by redefining DEBUG_NEW in the end of stdafx.h

#undef DEBUG_NEW
#define DEBUG_NEW new