c# custom interactor exception "could not get registered type - mteIndex='4294967295' "

The Merper <[email protected]> Fri, 11 Jan 2019 14:09:48 -0500
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CALbMNixxFL4LbN794fXvWF4OvdMnjhHnzDj4cFZjk1vYBifyTQ@mail.gmail.com>
Hi all,
  I'm trying to create a vtkInteractorStyleImage with a custom right button
press event like so:

vtkInteractorStyleImage interactorStyle = vtkInteractorStyleImage.New();
interactorStyle.RightButtonPressEvt += new vtkObject.vtkObjectEventHandler(
MyRightButtonPress);
vtkCellPicker Picker = vtkCellPicker.New();
RenWin.GetInteractor().SetPicker(Picker);
RenWin.GetInteractor().SetInteractorStyle(interactorStyle);

The interactor works, but sometimes when I use it, I get the following
exception:

could not get registered type - mteIndex='4294967295' classNameKey=''

According to this thread:
https://public.kitware.com/pipermail/vtkusers/2013-April/079120.html

The problem is that I need to remove to default RightButtonPressEvt before
I add my custom event. How can I do this?
    thank you in advance for any help you can offer,
         -Merps

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers