I have already done that (I have done a delete on the pointer in the Hash before removing the key), but my app shows a constant increase in the VIRTUAL MEMORY (using pmap), only while handling the data related to QHash<int, pointer>.
I suspect only the pointer in QHash, pointing to QVector ....
I am running 'top' command on the exe, at regular intervals and its showing a constant increase in Virtual Memory and resident memory. (Specifically in the anon Block, i think its Heap and related to Dynamic Memory i am using)
Is there any way i can find out, why this is happening ? or which data in my app is taking memory and not releasing back to the Heap???....
Is there any better way to detect Memory Leak in Qt.
I have used Valgrind, but its at very low level...




Reply With Quote

Bookmarks