Override new operator in C++ while crtdbg.h is causing conflicts

后端 未结 4 405
独厮守ぢ
独厮守ぢ 2021-02-02 04:48

While trying out some memory tracking and preparation for my own memory manager, I tried to override the new operator. The article on flipcode was my main guideline in this proc

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 05:12

    Try _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); -- as described in my blog post, no new redefinition needed.

提交回复
热议问题