Heap Memory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • roberto.bacenetti

    #1

    Heap Memory

    My program 's virtual memory keeps growing yet I could not find any place where I did not deallocate memory
    I isolated a piece of code and single stepped through the CRT DEBUG HEAP handler: this is what I found out and I cannot explain
    - the variable lToialCount in _CrtMemState contains a progressive count of memory allocated that does not take deallocations into consideration, so the documentation is wrong saying it is the number of bytes currently allocate
    - another variable, _lCurAlloc(loca l to the CRT module) grows with allocations and decreases with deallocations
    well after a lot of activity the variable returns to the original value at the end of my code, still the program memory keeps growing (into the hundred MB
    Can someone give me an explanation
    thank
    robert

    Robert

Working...