Close the DICOM file immediately after reading it.
The vtkDICOMImageReader would keep the last file open until the reader itself was destructed. On Windows, this often means that the file cannot be deleted or moved until the application closes.
The vtkDICOMImageReader would keep the last file open until the reader itself was destructed. On Windows, this often means that the file cannot be deleted or moved until the application closes.