Memory: vtkClipPolyData initiates ReferenceCount of 3

Robert Riviere Robert.Riviere at sophia.inria.fr
Mon Sep 6 08:19:49 EDT 1999


John,

> vtkClipPolyData, which initializes to a reference count of 3.
> Witness the output from this code snippet:
>     vtkClipPolyData *test = vtkClipPolyData::New();
>     printf ("test->GetReferenceCount(); %d
> \n",test->GetReferenceCount());
> output:     test->GetReferenceCount(); 3

That's strange, if I do the same thing under the tcl interface with 
vtk2.3 under Linux everything goes well :

% vtkClipPolyData t
t
% t GetReferenceCount
1

Robert





-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list