Is there any alternative available for checking memory leaks on Cygwin as it does not support Valgrind?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I don't know much about Windows, but you can try this tool, it seems that it has porting the soft on Windows platform: http://code.google.com/p/drmemory/
Some documentation is available here:
http://www.burningcutlery.com/derek/docs/drmem-CGO11.pdf
Hope this help.
Regards.
回答2:
Check for DUMA project http://duma.sourceforge.net/. It is a little different than you need, but hope you can find an answer there.
回答3:
I have recently used CMemLeak to great success. It is very easy to use, you just have to include it in every header, and detects memory leaks, invalid writes and non heap frees. It does not detect invalid reads.