Thank you for answer. Do you give me some other hint, please? I rewrite to this<br><br><span style="font-family: courier new,monospace;">void Window::widgetInicialization(QVTKWidget *widget)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    vtkSmartPointer&lt;vtkRenderWindow&gt; renwin = vtkSmartPointer&lt;vtkRenderWindow&gt;::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    vtkSmartPointer&lt;vtkRenderer&gt; ren = vtkSmartPointer&lt;vtkRenderer&gt;::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    ren-&gt;SetBackground(1,1,1); // inicial white background</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    renwin-&gt;AddRenderer(ren);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    widget-&gt;SetRenderWindow(renwin);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    widget-&gt;update();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    //renwin-&gt;Delete();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br><br>But I didnt free memory :( When I load image I gave about 40MB in RAM memory. When I load new image memory increase for example to 80MB (it depends which data is used)<br>
<br>When I load more data image program have 1,4GB RAM :( <br><br>Thank you for each answer<br style="font-family: courier new,monospace;"><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;">Use vtkSmartPointer to handle the memory in best way, it&#39;s simple usage is<br>
like that;<br>
vtkSmartPointer &lt; vtkClass &gt; vtkObj = vtkSmartPointer &lt; vtkClass &gt; :: New();<br>
vtkSmartPointer, checks if an object is out of scope, it releases memory<br>
resource taken for that object automatically.<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415310.html" target="_blank">http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415310.html</a><br>
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>
</blockquote></div><br>