MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010121 | VTK | (No Category) | public | 2010-01-12 01:40 | 2016-08-12 09:55 |
| Reporter | Stéphane Metz | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | trivial | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0010121: Wrong use of SetEnabled (int) method in some vtkInteractorObserver class destructor | ||||
| Description | Actually, 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. | ||||
| Steps To Reproduce | |||||
| Additional Information | Some 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. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||