[vtkusers] How do I find leaks ?

de Boer Ingo I.deBoer at polytec.de
Tue May 23 03:13:41 EDT 2006


Hi,

you should use the VTK_DEBUG_LEAKS flag. Maybe this
will help, too:

http://www.codeproject.com/tools/visualleakdetector.asp

greets
 Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255


> -----Original Message-----
> Subject: [vtkusers] How do I find leaks ?
> 
> 
> I have recently found out that my VTK app is leaking memory. 
> I rebuilt VTK with leaking switched on and I now get 6 dialog 
> boxes of info. The first thing I noticed was that I don't 
> expicitly use a lot of the objects so they're obviously used 
> by top level objects I do use. I have checked out my app very 
> carefully to see that all New()s are balanced with a 
> Delete(). But I'm still leaking :-((
> 
> So my theory is that some object is blocking the whole 
> destruction process by holding a reference. BUT who is the 
> culprit??? Can anyone give me some pointers on solving this problem
> 
> Thanks Paul
> 
> VTK 5.0 Windows  VC6  MFC
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.7.0/345 - Release 
> Date: 22/05/2006
>  
> 
> _______________________________________________
> 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
> 



More information about the vtkusers mailing list