How can we use Valgrind Tools of Qt creator to check memory leaks in Windows and MAC?
I have tried in MAC but i am getting the error
"valgrind tools could not be started: No such file or directory".
Valgrind is not available for Windows. And it supports only Mac OS X 10.6 and 10.7.
Which version of Mac OS X do you have?
[quote author="p-himik" date="1332388165"]Valgrind is not available for Windows. And it supports only Mac OS X 10.6 and 10.7.
Which version of Mac OS X do you have?[/quote]
so how can we analyze code in windows?
There are some tools. Some of them are commercial. Try to search in the web.
"Profiling and Memory Checking Tools":http://qt-project.org/wiki/Profiling-and-Memory-Checking-Tools
[quote author="Lukas Geyer" date="1332401205"]"Profiling and Memory Checking Tools":http://qt-project.org/wiki/Profiling-and-Memory-Checking-Tools[/quote]
I have downloaded the "valgrind" from the above link for MAC. How can i link that with Qt creator.
If your valgrind binary is not already in your PATH you can set the location manually in your project settings under Targets -> Run -> Analyzer and change the settings to "Custom" with your desired location under "Valgrind executable"
I installed valgrind btw with homebrew, which makes it easy to install terminal tools and add them to your path.
Note that in the vast majority of cases, your code will have the same memory leaks on Linux, Mac or Windows (aka as "the ones you put in" :-) ). For performance there may be differences.