[vtkusers] vtkImageReader - Unix vs WinNT Difference

Erik Sobel erik.sobel at alphatech.com
Wed Jun 28 10:56:55 EDT 2000


Can anyone explain the following difference between vtkImageReader's 
behavior on Unix vs WinNT.

When I read a bunch of files (slices of a volume) with vtkImageReader 
(ReleaseDataFlagOff) under WinNT the reader seems to keep a lock on ONE of 
the files so that it can't be deleted or moved - this doesn't seem to 
happen under unix.  Under unix, after files are read they can be deleted.

Also under WinNT, when the vtkImageReader Delete method is called one of 
the input files is opened - (if you delete the files after reading them the 
vtkImageReader creates a new file of size 0)

The file that is locked seems to be the same one that is specified by the 
GetInternalFileName method.  Anyone know what this "InternalFileName" is for?
Let's consult the documentation...
	void ComputeInternalFileName (int slice);
	char *GetInternalFileName ();
		Set/Get the internal file name

Gee I wish I'd thought of that :-)

-Erik






More information about the vtkusers mailing list