[Qt-interest] How to debug memory leaks in QT based application?

william.crocker at analog.com william.crocker at analog.com
Fri Apr 9 20:25:58 CEST 2010



Nicolas Rannou wrote:
> Hello,
> 
> We are developing an application based on different c++ libraries 
> including QT.
> When we want to track memory leaks in the application, we usually use 
> Valgrind.
> 
> The problem is that as soon as we use something from QT in our 
> application, Valgrind reports a lot of memory leaks inside QT (not 
> related to our application)... So it is almost impossible to find the 
> leaks I am interested in.
>


If you have a spare $10K sitting around you could buy a copy
of PurifyPlus from IBM which makes it very easy to suppress
(which I do a lot). You also get Quantify(profiling) and
Purecov(coverage) which are all good.

  Bill
(No monetary connection with IBM.)


> Do you know why Valgrind reports these leaks?
> Do you know how to debug memory leaks in a QT based application?
> (I would like to avoid writing a huge suppression file for Valgrind)
> Is Valgrind well suited for that or would you suggest to use something else?
> 
> Thanks,
> 
>      Nicolas
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 



More information about the Qt-interest-old mailing list