<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><DIV>Hello all,</DIV>
<DIV>the problem I'm facing is that when I close the <FONT size=2>QVTKWidget</FONT>, the memory allocated for rendering the volume and not the memory allocated for the reader , still not released even I delete all the actors, Mappers and the vtkVolume itself.</DIV>
<DIV>How can I find the Memory that VTK allocate for rendering the volume or how can I free it ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>this is how I proceed in just before closing the <FONT size=2>QVTKWidget</FONT>:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2>
<P>delete</FONT><FONT size=2> []((</FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2> *)data2-&gt;GetScalarPointer());// data2 is a vtkStructredPoints *</P>
<P>data2-&gt;Delete();// this is the only way I found to release the memoryu allocated for the reader.</P>
<P>&nbsp;</P><FONT size=2>
<P>rndr3D-&gt;RemoveVolume(vlm);//rndr3D is vtkRendrer*</P>
<P></FONT><FONT color=#008000 size=2><FONT color=#000000>vlm-&gt;Delete(); //vlm is the vtkVolume*</FONT></P></FONT><FONT size=2>
<P>rndr3D-&gt;Delete();</P>
<P>&nbsp;</P>
<P>thank you for your help.</P></FONT></FONT></DIV></div><br>



      <hr size="1"> 
Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52424/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo! Mail</a>.<br>Plus de moyens pour rester en contact. </a></body></html>