[Marble-devel] marblewidget memory leak
Konrad Enzensberger
e.konrad at mpegcode.com
Thu May 5 14:07:04 CEST 2011
Hello marble dev team,
i am working on a GIS app using the famous marblewidget.
doing this i am now facing a memory leak problem,
i tried to fix but failed.
find attached simple TestRender plugin code (VisualStudio 2005 sln),
this shows you the problem.
this plugin creates a new marble layer, all this layer is doing
is to draw a polyline (GeoDataLineString).
in TestRender::initialize() i create the layer and start a timer.
the timer signal timeout() calls the TestRender::slotUpdateMap()
every 500msec.
within this slot a GeoDataLineString is created end sent to the layer by
emit signalUpdatePoly() .
so on the map you can see the polyline moving from left to right
and back.
everything is ok, but use this plugin and watch memory usage -
it grows up every time the ployline is updatet.
note: use latest unstable marblewidget/marble version to get the plugin
working.
hope you are able to fix this memory leak,
thanks for support,
konrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20110505/1161118a/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testrenderplugin.ZIP
Type: application/x-zip-compressed
Size: 53736 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/marble-devel/attachments/20110505/1161118a/attachment-0001.bin
More information about the Marble-devel
mailing list