Thank you, Do you know, where I can find my memory problem? <br>In each loading I add new renderer, but I dont delete previous renderer. But when I tried to delete renderer something like this<br><br><span style="font-family: courier new,monospace;">qVTK1-&gt;GetRenderWindow()-&gt;RemoveRenderer(qVTK1-&gt;GetRenderWindow()-&gt;GetRenderers()-&gt;GetFirstRenderer());</span><br style="font-family: courier new,monospace;">
<br>It doesnt work fine. I dont delete renderer.<br><br>In my application, when I close it, I gave message<br><br>QObject::killTimers: timers cannot be stopped from another thread<br><br>But i dont use timers. <br><br><br>
<div class="gmail_quote">2011/5/21 chasank <span dir="ltr">&lt;<a href="mailto:chasank@gmail.com">chasank@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If you set NULL any kind of vtk object which is defined with vtkSmartPointer,<br>
whatever its reference count, it releases the memory resource.<br>
Your are defining a render window in a local scope, as soon as your function<br>
ends, it will be deleted, you don&#39;t have to do anything. I think you have<br>
another memory problems. Always be careful about scopes of your objects.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415578.html" target="_blank">http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415578.html</a><br>
</font><div><div></div><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>