<div>Yes I enabled vtkDebugLeaks and it seems that everything is fine.</div><div><br></div><div>You can find the example I was playing with at:</div><div>git@github.com:NicolasRannou/spheres.git</div><div><br></div><div>Thanks</div>
<div><br></div><div><br></div><div>Nicolas</div><div><br></div><div><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 9:17 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Oups, I see...<br>
<br>
When you enable debug leaks, when the application quit, do you see any leak ?<br>
<br>
By now I have no clue on what is going on.<br>
<br>
Seb<br>
<div><div></div><div class="h5"><br>
On Tue, Jul 5, 2011 at 9:10 AM, Nicolas Rannou <<a href="mailto:nicolas.lists@gmail.com">nicolas.lists@gmail.com</a>> wrote:<br>
> Hi Sebastien,<br>
> Yes, I don't delete it on purpose.<br>
> I would like to keep the polydata in memory but delete everything else which<br>
> is related to the visualization in order to decrease the memory usage!<br>
> Thanks<br>
> Nicolas<br>
> On Sat, Jul 2, 2011 at 11:19 PM, Sebastien Jourdain<br>
> <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>> wrote:<br>
>><br>
>> You never deleted the sphere.<br>
>><br>
>> On Tue, Jun 28, 2011 at 5:56 PM, Nicolas Rannou <<a href="mailto:nicolas.lists@gmail.com">nicolas.lists@gmail.com</a>><br>
>> wrote:<br>
>> > Hi all,<br>
>> > I would like to delete/remove actors from my rendering window to free<br>
>> > memory.<br>
>> > The issue is that the memory usage doesn't decrease after<br>
>> > removing/deleting<br>
>> > the actors.<br>
>> > From my understanding, both following pseudo-codes should use the same<br>
>> > amount of memory.<br>
>> > But,<br>
>> > The first one uses: 15 Mb for 1000 spheres:<br>
>> > The second uses: 90 Mb for 1000 spheres:<br>
>> > How should I proceed in the 2nd case, to get back to the "original"<br>
>> > memory<br>
>> > usage without actor?<br>
>> > Thanks,<br>
>> ><br>
>> > Nicolas<br>
>> > ______________________________<br>
>> > 15 Mb<br>
>> > ______________________________<br>
>> > //Create a sphere<br>
>> > vtkSphereSource* sphere = new ...<br>
>> > ______________________________<br>
>> > 90 Mb<br>
>> > ______________________________<br>
>> > //Create sphere<br>
>> > vtkSphereSource* sphere = new ...<br>
>> > // mapper<br>
>> > vtkMapper* mapper ...<br>
>> > mapper->SetInput( sphere->GetOutput() )<br>
>> > // actor<br>
>> > vtkActor* actor...<br>
>> > actor->SetMapper(mapper)<br>
>> > mapper->Delete()<br>
>> > // Add and remove actor<br>
>> > renderer->AddActor(actor)<br>
>> > renderer->RemoveActor(actor)<br>
>> > // Delete actor<br>
>> > actor->Delete()<br>
>> > ______________________________<br>
>> > ______________________________<br>
>> ><br>
>> ><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<br>
>> > <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:<br>
>> > <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>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>