[vtkusers] growing RAM memory

G G greenlander1986 at gmail.com
Sat May 21 17:16:19 EDT 2011


Thank you, Do you know, where I can find my memory problem?
In each loading I add new renderer, but I dont delete previous renderer. But
when I tried to delete renderer something like this

qVTK1->GetRenderWindow()->RemoveRenderer(qVTK1->GetRenderWindow()->GetRenderers()->GetFirstRenderer());

It doesnt work fine. I dont delete renderer.

In my application, when I close it, I gave message

QObject::killTimers: timers cannot be stopped from another thread

But i dont use timers.


2011/5/21 chasank <chasank at gmail.com>

> If you set NULL any kind of vtk object which is defined with
> vtkSmartPointer,
> whatever its reference count, it releases the memory resource.
> Your are defining a render window in a local scope, as soon as your
> function
> ends, it will be deleted, you don't have to do anything. I think you have
> another memory problems. Always be careful about scopes of your objects.
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/growing-RAM-memory-tp4346305p4415578.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110521/d611ae54/attachment.htm>


More information about the vtkusers mailing list