C++ - Memory leak testing with _CrtDumpMemoryLeaks() - Does not output line numbers

前端 未结 5 1968
迷失自我
迷失自我 2020-12-10 03:15

I\'m working on a game with SDL in Visual Studio 2010. I came across the _CrtDumpMemoryLeaks() macro and thought I\'d give it a go. Invoking _CrtDumpMemor

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 03:18

    Check out the piece of code.

    Overloading operator new and operator delete to log all memory allocations and deallocations

    I identified my memory leaks using this method.

提交回复
热议问题