A problem with vtkImageViewer2

Hi! I am studying and I have problems with the example for reading and displaying, freezes and closes when scrolling slices.
https://lorensen.github.io/VTKExamples/site/CSharp/IO/ReadDICOMSeries/