[vtk-developers] BUG: vtkObjectFactory::UnRegisterFactory

Moreland, Kenneth kmorel at sandia.gov
Wed Oct 16 18:22:29 EDT 2002


There appears to be a bug in a loop in vtkObjectFactory::UnRegisterFactory
with a loop starting on line 424:

  int index = 0;
  while((factory =
         vtkObjectFactory::RegisteredFactories->GetNextItem()))
    {
    libs[index] = factory->LibraryHandle;
    }

Notice that index is not getting incremented.  A loop lower in the code has
a tendency to seg fault when the number of registered factories is greater
than 1.

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 844-9297
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2117 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20021016/2f1df2cb/attachment-0002.bin>


More information about the vtk-developers mailing list