View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010121VTK(No Category)public2010-01-12 01:402016-08-12 09:55
ReporterStéphane Metz 
Assigned ToKitware Robot 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010121: Wrong use of SetEnabled (int) method in some vtkInteractorObserver class destructor
DescriptionActually, vtkInteractorObserver class destructor make a call to "this->SetEnabled (0);"

The problem is that in c++, the virtual dispatching mechanism has a different semantics during construction and destruction of an object. So in this case, when we proceed to the destruction of a vtkInteractorObserver object, the SetEnabled(int) called method is the vtkInteractorObserver class definition (which is empty) and not the respective daughter method definition.

In other word, "this->SetEnabled(0);" call in the vtkInteractorObserver object destructor is useless, and all specialized classes are never disable itself at destruction.
Additional InformationSome daughter classes are valid because they are recalling "this->SetEnabled(0);" in their own destructor like vtkContourWidget class, but others are not like vtkBoxWidget class.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0037134)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2010-01-12 01:40 Stéphane Metz New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037134
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team