Hi,
I am facing memory leak, issues.
1. I have quite a few QVector's in my app, to store data, does a call to QVector::clear(), release all the memory that is occupied by it?.
2. I have a pointer to QVector(Size of which grows enormously), when i am done with my job, i do delete on the pointer.
Does this release all the memory or do i have to clear the QVector before doing delete on the pointer to have successfull memory release?
3.I have a QHash<int, pointer>, to draw some data on the display.
i have used QHash::values(), to get the data to be drawn.
When i am done with one key, i call QHash::remove(key).
After remove is done, will QHash::values() return the value pointed to by 'key'?
Is it safe to use QHash::values() directly without getting list of keys and then there values....?
I have already done a delete on pointer, but my app, still shows an increase in VIRTUAL MEMORY(output from pmap) continuosly after delete is done ...what can be the issue?
Looking forward to your response...
Bookmarks