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

Gabriel M. Beddingfield gabrbedd at gmail.com
Fri Apr 9 21:21:19 CEST 2010



On Fri, 9 Apr 2010, Nicolas Rannou wrote:

>> Perhaps you can use the --suppress and --gen-suppressions
>> options to suppress errors and libraries that you are not
>> interested in.
>> 
>> See /usr/lib/valgrind/default.supp for examples.
>> 
>> -gabriel
>> 
>
> yes but you have to create the suppressions file manually which I would like 
> to avoid....

--gen-suppressions=all will auto-create the rules for you. 
Redirect the output to a file and edit it.  Good thing is 
you'll only have to do it once or twice.

I think there is also some limited patterning available when 
writing rules.

Otherwise... I have no other suggestions. Sorry! :-)

hth,
gabriel



More information about the Qt-interest-old mailing list