Memory leak tool on cygwin

2020-06-30 05:56发布

问题:

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.