[vtkusers] Re: How do I find leaks ?
Mike Jackson
imikejackson at gmail.com
Wed May 24 00:04:37 EDT 2006
try the following:
obj1->SetInput(obj2->GetOutput());
obj2->SetPipelineInformation(0);
Look back in the archives for a subject "[vtkusers] VTK, RefCounting
and Delete()" around May 8th of this year. There might be some
explanation in there....
--------
Mike Jackson
imikejackson <at> gmail <dot> com
On May 23, 2006, at 8:16 PM, Paul Tait - OPES wrote:
> I guess I should rename this thread to how do I find "Dangling
> References".
> While its fairly obvious when I see code like (below) that I'm
> passing a
> reference and incrementing the ReferenceCount variable I'm
> obviously missing
> some other places where the ReferenceCount is incremented and not
> matching
> it with the correct "UnReference" code. Unfortunately it’s a rather
> high
> level object so its causing a substantial memory leak. I'm going to
> try add
> a simple counter to the new/delete code just to confirm I have
> matching
> New()/Delete() I'll report back on my findings.
>
>
> obj1->SetInput(obj2->GetOutput());
>
> Again any help on a solution or strategy would be appreciated. I've
> noticed
> Garbage Collection classes in VTK 5 but the docs are a bit sparse.
> Anything
> there that might help me ?
>
> Thanks Paul
>
> --
> 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