[vtkusers] memory leaks in a c++ programm with vtk

Dominik Szczerba domi at vision.ee.ethz.ch
Tue Jun 27 11:00:39 EDT 2006

you should run your code through a leak detector to tell where the leak
occurs. but first I would make sure you delete the objects in the right
order (not sure if it matters, but I would check it)

Justus Kreuels wrote:
> Hello.
> When I Create vtk-Objects as Membervariables of a c++ class, i get an 
> error when i delete these objects in the destructur of the class. 
> When I don't delete the objects my programm has memory leaks.
> When I greate a vtk-Object only local in a function, it's no problem to 
> use the delete-Method of the Object.
> What could be the reason for this behaviour. I use VS 2005 and Windows 
> XP. With VS 7.0 I had the same problem. 
> Thank you very Much
> Justus Kreuels
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

Dominik Szczerba, Dr.
Computer Vision Lab CH-8092 Zurich

More information about the vtkusers mailing list