[vtkusers] [vtk-developers] Program crashing because vtkContourWidget still getting sent events after it's deleted.

Karthik Krishnan karthik.krishnan at kitware.com
Tue Jul 1 15:21:36 EDT 2008


Just fixed in CVS. (I could reproduce the issue). Please update.

vtkAbstractWidget.cxx
----------------------------
revision 1.18
date: 2008-07-01 15:03:23 -0400;  author: karthik;  state: Exp;  lines: 
+1 -0;  commitid: MhJBw2Jg7US4m89t;
BUG: The widget still receives events after it has been deleted.
  Reported on the developers list by Kent Williams
    http://www.vtk.org/pipermail/vtk-developers/2008-July/005299.html
----------------------------


Please let us know if this works for you.

thanks

kent williams wrote:
> My tracing application is crashing.  It crashes when I delete an
> instance of vtkContourWidget.
>
> The problem is that as soon as any event happens in the window which
> the vtkContourWidget was associated, the event still gets invoked on
> the deleted instance.
>
> I.e. the problem happens when I mouse movement event is sent to the
> vtkGenericRenderWindowInteractor.
>
> It is as though I need some sort of method to disassociate the
> vtkContourWidget from the RenderWindowInteractor before I delete it.
>
> Either that or vtkContourWidget needs to start doing this in its
> destructor/Delete method.
>
> Anyone know if this is a bug, or if I'm just doing things wrong?
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>   

-- 
--
Karthik Krishnan
R & D Engineer,
Kitware Inc,
Ph: +1 518 3713971 x119
Fax: +1 518 3714573




More information about the vtkusers mailing list