[Interest] Memory leak problem in a Qt App

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Tue Nov 3 10:47:35 CET 2015


I have found this blog post:
https://dragotin.wordpress.com/2014/08/14/monitor-the-qobject-tree-of-a-qt-app/

I will try using these callbacks to monitor the QObject tree. They are
absolutely undocumented (searching for the function name leads to the blog
page as first result...), are they maintained/functional?

Thanks!

2015-10-30 18:51 GMT+01:00 william.crocker at analog.com <
william.crocker at analog.com>:

>
>
>>     Also, use techniques like QScopedPointer to simplify memory
>>     management.
>>
>>
>> All this was done, especially in the QThread / QSocket part. But the app
>> is
>> complex and something may have been left out.
>>
>>
> I had a similar problem.
> You need to look for places where "things" could accumulate.
> Check your QLists and QMaps in addition to the QObject
> parent/child model. I assume you know the top level QObjects.
> Recursively visit all children and dump the tree, with indentation
> and inspect.
>
> Purify also has an option to show you all memory in use.
> I assume that Valgrind has something similar.
>
> Bill
>
>
>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151103/8a2d9bfc/attachment.html>


More information about the Interest mailing list