Is there any alternative available for checking memory leaks on Cygwin as it does not support Valgrind?
Valgrind only works on Unix-based systems (e.g., GNU/Linux, FreeBSD, and MacOSX). It does not work on Cygwin because Cygwin emulates UNIX at the library layer, but Valgrind operates at the system call layer and the Windows system calls are significantly different than UNIX system calls.
Using Memory Profilers Memory profilers are tools that can monitor memory usage and help detect memory leaks in an application. Profilers can also help with analyzing how resources are allocated within an application, for example how much memory and CPU time is being used by each method.
One way to check for memory leak is to press and hold down your Windows key and tap the Pause/Break key to bring up System Properties. Click on the Performance tab and check System Resources for the percentage of free or available RAM.
Valgrind heavy relies on Linux internals, that's why Valgrind does not support Windows.
Changing Cygwin's Maximum Memory. Cygwin's heap is extensible. However, it does start out at a fixed size and attempts to extend it may run into memory which has been previously allocated by Windows. In some cases, this problem can be solved by changing a field in the file header which is utilized by Cygwin since to keep the initial size...
This proprietary tool helps for early detection of memory leaks and helps to reduce expenses for fixing memory leaks. Known as an error debugger for C, C++ applications running on Windows and Linux without using any special compiler.
Rapidly diagnoses memory leaks in the C++ application and selects the module that needs to be excluded from the memory leak. Visual C++ provides built-in memory leak detection avails a complete set of leaked blocks. Customizable and detailed memory leak reports are the best feature of this tool.
Changing Cygwin's Maximum Memory Cygwin's heap is extensible. However, it does start out at a fixed size and attempts to extend it may run into memory which has been previously allocated by Windows.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With