I am trying now. In VTK examples Examples\GUI\Qt\Events is in global scope only vtkRenderer... I have tried according this, but it crash in <br><span style="font-family: courier new,monospace;"> cout<<"bla"<<endl;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ren = NULL;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ren->SetBackground(1,1,1);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ren->AddActor(actor);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> widget->GetRenderWindow()->AddRenderer(ren);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> cout<<"ups"<<endl;</span><br style="font-family: courier new,monospace;">"bla" is written, but "ups" not. I have in all important method <br>
vtkSmartPointer<vtkRenderer> ren<br><br>inicialization I do only ones, it is problem?<br><br><br><div class="gmail_quote">2011/5/21 G G <span dir="ltr"><<a href="mailto:greenlander1986@gmail.com">greenlander1986@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thank you, I try it. And post here solution<br><br><div class="gmail_quote"><div class="im">2011/5/21 chasank <span dir="ltr"><<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>></span><br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My suggestion is,<br>
if you do not need more than one renderer and RenderWindow<br>
- Define them in a global scope,<br>
- And before each call to the widgetInicialization method, set them to the<br>
NULL<br>
- in widgetInicialization method, Re-create them, set the values<br>
- Lastly update your widget object.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415624.html" target="_blank">http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415624.html</a><br>
</font><div><div></div><div>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></div></div><br>
</blockquote></div><br>