[vtkusers] Verbosity of VTK_DEBUG_LEAKS?

David Doria daviddoria+vtk at gmail.com
Mon Oct 12 16:11:23 EDT 2009


Simply changing one line from
vtkSmartPointer<vtkPolyData> poly = vtkSmartPointer<vtkPolyData>::New();
to
vtkPolyData* poly = vtkPolyData::New();
(and of course forgetting to delete it) generates the following messages:

vtkDebugLeaks has detected LEAKS!
Class "vtkCellData" has 1 instance still around.
Class "vtkInformationVector" has 3 instances still around.
Class "vtkPointData" has 1 instance still around.
Class "vtkTrivialProducer" has 1 instance still around.
Class "vtkPoints" has 1 instance still around.
Class "vtkInformation" has 6 instances still around.
Class "vtkPolyData" has 1 instance still around.
Class "vtkAlgorithmOutput" has 1 instance still around.
Class "vtkInformationIntegerValue" has 10 instances still around.
Class "vtkCellArray" has 2 instances still around.
Class "vtkFloatArray" has 1 instance still around.
Class "vtkInformationStringValue" has 1 instance still around.
Class "vtkInformationExecutivePortVectorValue" has 1 instance still around.
Class "vtkIdTypeArray" has 2 instances still around.
Class "vtkFieldData" has 1 instance still around.
Class "vtkInformationDoubleVectorValue" has 2 instances still around.
Class "vtkUnsignedCharArray" has 1 instance still around.
Class "vtkStreamingDemandDrivenPipeline" has 1 instance still around.
Class "vtkInformationExecutivePortValue" has 1 instance still around.

It's pretty tough to figure out what was actually the root of the problem by
looking at that list. Is there a way to say "show only parents" or something
like that, so that only the things highest up in the hierarchy are shown?
That is, deleting that polydata object in turn deletes the rest of those
"under the hood" things automatically, so I don't really need to be notified
about those.

Is anything like this possible?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091012/30a290af/attachment.htm>


More information about the vtkusers mailing list