I already use Valgrindin small programs to check memorys leaksand it works well.
Now I have a big program with many class and .cppand class files .h, and I'm trying to use Valgrindfor checking memory leakbecause I use a lot of pointers, memory, etc.
I use linuxboth codeblocks 16.01s gccand I try to run Valgrinddirectly in codeblocks, but I get the following error:
--------------- Application output --------------
valgrind: /myPathToTheProject/ValgrindOut.xml: No such file or directory
If I test a small project only with a file .cppand it works well, it Valgrindgenerates ValgrindOut.xml. In this big project, I always get this error. Does anyone know what is wrong? or in another way or tool for testing memory leak?
EDIT - MAKE SUMMARY after running Valgrind
Leak summary:
definitely lost: 673 bytes in 6 blocks.
indirectly lost: 89,128 bytes in 68 blocks.
possibly lost: 232 bytes in 2 blocks.
still reachable: 80,944 bytes in 6 blocks.
suppressed: 0 bytes in 0 blocks.
source
share