Search code examples
linuxmemoryqt4.7

Qt based program: Memory usage continues to grow


I use top to check the memory usage of My own program , it continues to increase , until my swap space started to be in use.

It's not like a memory leak , because when I close my program , the memory usage drops down immediately.

How should I find out where the problem is ?

Thanks !


Solution

  • It's most likely a memory leak. Use Valgrind, for example, to analyze your code (http://www.cprogramming.com/debugging/valgrind.html).