title: Memory leak, how to detect what is causing it using MS Visual Studio 2012?
body: <p>I've been adapting <a href="http://cmp.felk.cvut.cz/~uricamic/flandmark/" rel="nofollow">this code</a> (the c++ version) to my needs, which involves running over a very long video sequence. After a few hundred frames, the program crashes due to memory issues. If i check the memory used by the process, it is using more than 1.6 GB RAM. Checking memory usage (in a very dumb way using windows task manager..) i've noticed that every frame uses pretty much the same amount of extra memory.</p>
  
  <p>I've been told that using MS Visual Studio (the IDE i'm currently using) i should be able to see, at a certain point, which variables are using more memory, in order to find which one is causing the memory leak and to fix it, but i couldn't find anything about it in the IDE.</p>
  
  <p>If possibile, i'd like not to use tools like Valgrind and solve the problem using Visual Studio. If not..well, i'll think about that when i'll get there :)</p>
  
  <p>Thanks!</p>