[vtk-developers] New feature: debug leaks and commands

Andy Cedilnik andy.cedilnik at kitware.com
Fri Jun 21 13:56:07 EDT 2002


Hi All!

I modified vtkCommand so that it is a subclass of vtkObjectBase. It uses
the same reference counting scheme as all the other classes in VTK.
Also, I added debug leaks support for vtkCommand and all subclasses.
Since for vtkCommand subclasses it is not necessary to implement
GetClassName, I hardcoded string "vtkCommand or subclass", so when you
get report of leaks, it will say that instead of MyCommand.

Important thing is not to override Delete and UnRegister methods on the
vtkCommand subclasses except if you know what you are doing, otherwise
debug leaks will not work.

			Andy





More information about the vtk-developers mailing list