[vtkusers] Memory leak ?

JJ_Tian at moldflow.com JJ_Tian at moldflow.com
Wed Aug 16 17:22:57 EDT 2000


Hi,
     All of my vtk applications had 40 bytes memory leaks, including the
sample comes with vtk installation(version 3.12). After some checking up, I
found that     vtkObjectFactory::RegisterdFactories is created in
vtkObjectFactory::Init(); but it is never released because
vtkObjectFactory::UnRegisterAllFactories(); is never called. After calling
vtkObjectFactory::UnRegisterAllFactories(); at the end of the applications,
the leaks disappeared.
     Is this a bug or   vtkObjectFactory::UnRegisterAllFactories() supposed
to be called ? Can it be called automatically ?
     Thanks.







More information about the vtkusers mailing list