[Qt-interest] player Memory growing.

Harri Pasanen grego at mpaja.com
Thu Dec 16 15:47:29 CET 2010


On Thursday, December 16, 2010 02:50:20 pm Marek Bronowicki wrote:
> Hello
> 
> I have a big problem.
> 
> Attached is a mediaplayer class which is playing via gstreamer a movie
> or via qlabel an image or via webkit the flash files.
> 
> I'm trying to do my best but It's just too much I think for me. It's a
> part of much more, but this is the only class that when I disable it,
> there is no memory grow.

On Linux Valgrind is your best friend when looking for memory leaks.

http://valgrind.org/

It is quite easy to use.

http://valgrind.org/docs/manual/quick-start.html#quick-start.prepare

For more detail you can instrument your code for instance to have valgrind 
dump the memory usage between two iterations of a loop.

Hope this helps,

-- 
Grego
http://mpaja.com/



More information about the Qt-interest-old mailing list