Simply changing one line from<br>vtkSmartPointer<vtkPolyData> poly = vtkSmartPointer<vtkPolyData>::New();<br>to<br>vtkPolyData* poly = vtkPolyData::New();<br>(and of course forgetting to delete it) generates the following messages:<br>
<br>vtkDebugLeaks has detected LEAKS!<br>Class "vtkCellData" has 1 instance still around.<br>Class "vtkInformationVector" has 3 instances still around.<br>
Class "vtkPointData" has 1 instance still around.<br>Class "vtkTrivialProducer" has 1 instance still around.<br>Class "vtkPoints" has 1 instance still around.<br>Class "vtkInformation" has 6 instances still around.<br>
Class "vtkPolyData" has 1 instance still around.<br>Class "vtkAlgorithmOutput" has 1 instance still around.<br>Class "vtkInformationIntegerValue" has 10 instances still around.<br>Class "vtkCellArray" has 2 instances still around.<br>
Class "vtkFloatArray" has 1 instance still around.<br>Class "vtkInformationStringValue" has 1 instance still around.<br>Class "vtkInformationExecutivePortVectorValue" has 1 instance still around.<br>
Class "vtkIdTypeArray" has 2 instances still around.<br>Class "vtkFieldData" has 1 instance still around.<br>Class "vtkInformationDoubleVectorValue" has 2 instances still around.<br>Class "vtkUnsignedCharArray" has 1 instance still around.<br>
Class "vtkStreamingDemandDrivenPipeline" has 1 instance still around.<br>Class "vtkInformationExecutivePortValue" has 1 instance still around.<br><br>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.<br>
<br>Is anything like this possible?<br><br clear="all">Thanks,<br><br>David<br>