On 11/08/2016 01:18 PM, Elvis Stansvik wrote:
Hi all,
Is it possible to get some more informative error from H5Fopen than
"it failed"? E.g. if it was a permission problem, nonexistent file,
corrupted file, ...? Or must I try to deduce the reason for the
failure myself? (always risky to do such checks pre- or post-mortem so
to speak..).
I think you are going to have to share your output with the list.
Whenever *I* run hdf5 and get an error I get screenfuls of information.
For example, here's a simple hdf5 program trying to open a file for
which I have removed all read and write permissions:
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../hdf5-1.8.16/src/H5F.c line 604 in H5Fopen(): unable to
open file
major: File accessibilty
minor: Unable to open file
#001: ../../../hdf5-1.8.16/src/H5Fint.c line 992 in H5F_open():
unable to open file: time = Mon Nov 28 14:41:40 2016
, name = 'try.h5', tent_flags = 1
major: File accessibilty
minor: Unable to open file
#002: ../../../hdf5-1.8.16/src/H5FD.c line 993 in H5FD_open(): open
failed
major: Virtual File Layer
minor: Unable to initialize object
#003: ../../../hdf5-1.8.16/src/H5FDsec2.c line 339 in
H5FD_sec2_open(): unable to open file: name = 'try.h5', errno = 13,
error message = 'Permission denied', flags = 1, o_flags = 2
major: File accessibilty
minor: Unable to open file
Thanks in advance,
Elvis
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5