MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010464 | VTK | (No Category) | public | 2010-03-26 08:42 | 2016-08-12 09:55 |
| Reporter | Gianluca | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0010464: vtkSeedWidget CRASH!!! | ||||
| Description | The method DeleteSeed of the class vtkSeedWidget crash: void vtkSeedWidget::DeleteSeed(int i) { if( this->Seeds->size() <= static_cast< size_t >(i) ) { return; } vtkSeedRepresentation *rep = static_cast<vtkSeedRepresentation*>(this->WidgetRep); if (rep) { rep->RemoveHandle( i ); } vtkSeedListIterator iter = this->Seeds->begin(); vtkstd::advance(iter,i); (*iter)->SetEnabled(0); (*iter)->RemoveObservers(vtkCommand::StartInteractionEvent); (*iter)->RemoveObservers(vtkCommand::InteractionEvent); (*iter)->RemoveObservers(vtkCommand::EndInteractionEvent); vtkHandleWidget * w = (*iter); this->Seeds->erase( iter ); w->Delete(); } The problem is in the last two lines. You have to FIRST delete the object, then erase the relative iterator. That is you have to swap the last two lines: w->Delete(); this->Seeds->erase( iter ); Please fix it! Thanks. - AGPX | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-03-26 08:42 | Gianluca | New Issue | |||
| 2010-03-26 10:12 | Gianluca | Note Added: 0020017 | |||
| 2010-04-20 17:22 | David Doria | Note Added: 0020305 | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:55 | Kitware Robot | Note Added: 0037156 | |||
| 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 | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||