Hdfview should default to read-only open


I ran hdfview like so…

/path/HDFView-3.0.0-Linux/HDFView/3.0.0/hdfview.sh myfile.h5

Its a 1.5 GB file with a ton of directories and objects in it.

hdfview OOM’d. That is bad. Worse, it corrupted the file.

When a file is given on the command-line, I think it should default to opening that file read-only. In addition, if data corruption is a potential issue with hdfview, then I would recommend that ‘open’ in the GUI means read-only and a separate open-for-write be provided.

I think the default open for writing is too risk, particularly given this experience.


Yes, next release defaults to read-only mode.