- The C++ stack is pre-allocated and its size never changes. Whatever you allocate on the stack you will never see in the task manager or in a memory profiler that hooks on memory allocation functions.
- Qt uses PIMPL a lot, so any QObject allocated on that stack will actually have most of its data allocated on the heap.
- Variations of memory of +/- 100K is not a memory leak. They are often symptoms of an undisclosed implementation detail or OS memory management.
- I wouldn't worry about memory fragmentation until your application gets to 2GB of memory usage.
Since the OP never claimed leaks of more than 100K over the lifetime of the application, I really wouldn't a memory leak there a all. Unless you have clear evidence that over a period of time, memory usage by the application has increased by at the very minimum 10MB (100MB would make it better), then I would just attribute that +/- 100KB to the task manager being not precise.
Bookmarks