title: c++ - Valgrind on codeblocks (linux)
body: <p>I already use the <code>Valgrind</code> in small programs to check <code>memorys leaks</code> and its work good.</p>
  
  <p>Now i have a big program with many class and <code>.cpp</code> and <code>.h</code> files and i'm trying to use <code>Valgrind</code> to check the <code>memory leak</code> because i use a lot of pointers, memory, etc. </p>
  
  <p>I'm using <code>linux</code> and <code>codeblocks 16.01</code> with <code>gcc</code> and i trying to run the <code>Valgrind</code> directly in <code>codeblocks</code> but i'm getting the follow error:</p>
  
  <pre><code> --------------- Application output --------------
  valgrind: /myPathToTheProject/ValgrindOut.xml: No such file or directory
  </code></pre>
  
  <p>If i test with a small project with only a <code>.cpp</code> file and main it works good and the <code>Valgrind</code> generate the <code>ValgrindOut.xml</code>. In this big project i always getting this error. Someone have some idea what is wrong? or other way or tool to test <code>memory leak</code>? </p>
  
  <p>EDIT - LEAK SUMMARY after running Valgrind</p>
  
  <pre><code>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.
  </code></pre>