AnsweredAssumed Answered

memory leak - how can I debug it?

Question asked by fvpetrov on May 31, 2012
Latest reply on Jun 4, 2012 by MurrayA

I have a VDK C++ for BF535 application compiled with VisualDSP++ 5.0 Update 10 on a Win7 x64 machine.

My application leaks heap memory and that memory isn't mine . I mean, it's not allocated "by hand".

Apart from my memory allocations, I intensively use STL containers.

 

I wrote some functions which keep a track of allocated memory, that means, after each "new" the pointer is registered in a table, after each "delete/delete[]" the pointer is removed from table. I do not use "malloc"-like functions.

I could not see any leak so far with the heap memory I allocate.

 

Questions:

1. Is it possible to hook malloc and free?

2. Is it possible to parse the heap and say which memory is allocated? (I know about the free memory blocks in heap)

3. Further ideas (new and delete operators replacement)?

 

thanks.

Outcomes