Need a tool to detect memory leaks in C code

前端 未结 6 1133
长发绾君心
长发绾君心 2021-02-11 00:16

Is there a good application (that has some kind of gui) for testing memory leaks in c code. I would really like to test my assignment/programme but being very new to this, i str

6条回答
  •  一生所求
    2021-02-11 00:41

    If you're using Microsoft's DevStudio then the C run-time library has plenty of memory allocation tracking tools already built-in:

    The Debug Heap

    _CrtSetDbgFlag

    It amazes me how few programmers seem to be aware of these tools!

提交回复
热议问题