memory leak debug

前端 未结 6 1569
臣服心动
臣服心动 2021-02-15 04:17

What are some techniques in detecting/debugging memory leak if you don\'t have trace tools?

6条回答
  •  执笔经年
    2021-02-15 04:46

    I have used memtrace http://www.fpx.de/fp/Software/MemTrace/ http://sourceforge.net/projects/memtrace/

    You may need to call the statistics function to printout if there are any leaks. Best thing is to call this statistics function before and after a module or piece of code gets executed. * Warning * Memtrace is kind enough to allow memory overwrite/double free. It detects these anomalies and gracefully avoids any crash.

提交回复
热议问题