_CRTDBG_MAP_ALLOC not showing file name

前端 未结 2 1138
不知归路
不知归路 2021-02-04 02:28

I am trying to detect memory leak, and I am using make _CRTDBG_MAP_ALLOC macro to locate where the leaks area. So I am defining MACRO like following:

#ifdef _DEB         


        
2条回答
  •  深忆病人
    2021-02-04 02:32

    It seems the line of the leak only is displayed if the CRT is turned on in that cpp file.

提交回复
热议问题