[vtkusers] Release only bug using widget
Jose Ignacio Prieto
joseignacio.prieto at gmail.com
Tue Jan 28 10:00:06 EST 2014
Hi all,
I am having a release only bug I haven't been able to trace. It happens
when I create an object in a smartpointer, delete it and then create again.
I am using a class derived from vtkDistanceWidget. It is stored in a
vtkSmartPointer inside a interactor observer derived class.
The deletion method inside interactorobserver is like this:
this->m_ellipsoidWidget->ReleaseFocus();
this->m_ellipsoidWidget->Delete();
And the creation method inside interactorobserver is:
this->m_ellipsoidWidget = vtkSmartPointer<
epxVtkEllipsoidWidget>::New();
this->m_ellipsoidWidget->SetDebug(1);
this->m_ellipsoidWidget->SetInteractor(this ->GetInteractor());
this->m_ellipsoidWidget->SetCurrentRenderer(this->win->ren);
this->m_ellipsoidWidget->SetEnabled(1);
The problem is that I can't find the error on debug mode, it only
appears on release. I tried to set both methods under a try-catch
block with std::exception but they are not caught. Setting console
output I figured out it breaks after the SetDebug line. What can it
be??
Thank you very much, I have no clue on this.
Ignacio Prieto
--
Ignacio Prieto
Software Developer
Biomedical Imaging Center
Pontificia Universidad Católica de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140128/d1bc9e0b/attachment.html>
More information about the vtkusers
mailing list