[vtkusers] memory management
Michele Zamponi
michele.zamponi at menci.com
Mon Oct 8 07:50:54 EDT 2001
Hi, Prabhu, and thank you from your reply.
In my application i can create/destroy all the rendering windows I want.
the problem is that when I destroy a rendering window without exiting from
the application, my memory doesn't free.
Elsewise, if I quit the application everything goes well.
But I need to create and destroy rendering windows many times in a working
session.
thank you for any replay
Michele
----- Original Message -----
From: "Prabhu Ramachandran" <prabhu at aero.iitm.ernet.in>
To: "Michele Zamponi" <michele.zamponi at menci.com>
Cc: "VTK users list" <vtkusers at public.kitware.com>
Sent: Monday, October 08, 2001 12:36 PM
Subject: [vtkusers] memory management
> hi,
>
> >>>>> "MZ" == Michele Zamponi <michele.zamponi at menci.com> writes:
>
> MZ> I have a big problem of memory managment using VTK libraries.
>
> MZ> In my window's document constructor I instantiate a set of VTK
> MZ> objects as follows:
>
> Do you mean to say after you close the entire application you are
> having trouble? Or is it while the app is running? If it is during
> run time and if you are creating objects that are being rendered when
> the class is deleted then the objects still exist since the renderer
> will still need the actor. All vtk objects are reference counted so
> even if you call delete unless no other object is referring to the
> particular object, the object is not deleted.
>
> OTOH, if this is a problem that occurs after you close the app then it
> is likely that you need to re-install/rebuild vtk. Search the
> vtkusers archive for memory related problems - I believe there were
> others who faced similar problems with memory.
>
> http://www.kitware.com/search.html
>
> prabhu
>
More information about the vtkusers
mailing list