[vtkusers] Re: How do I find leaks ?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue May 23 10:57:19 EDT 2006


Paul Tait - OPES wrote:
> 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
> 

You could give IBM's purify a go... download a trial here:

http://www-306.ibm.com/software/awdtools/purify/win/


hth

Goodwin




More information about the vtkusers mailing list