[vtkusers] memory management

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Mon Oct 8 06:36:13 EDT 2001


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