VTKExamples icon indicating copy to clipboard operation
VTKExamples copied to clipboard

CSharp example custom interactor exception

Open dmgroppe opened this issue 7 years ago • 0 comments

This CSharp example: https://lorensen.github.io/VTKExamples/site/CSharp/IO/ReadDICOMSeries/

Produces the following exception somewhat randomly:

System.Exception: 'error: could not get registered type - mteIndex='4294967295' classNameKey='''

If you scroll through enough slices, eventually you should get the exception. The exception appears to be caused by the custom vtkObjectEventHandlers that are added to interactorStyle on these two lines:

     interactorStyle.MouseWheelForwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelForwardEvt);
     interactorStyle.MouseWheelBackwardEvt += new vtkObject.vtkObjectEventHandler(interactor_MouseWheelBackwardEvt);

dmgroppe avatar Jan 22 '19 15:01 dmgroppe