gdl icon indicating copy to clipboard operation
gdl copied to clipboard

H5D_OPEN fails on windows, because of a (long) cast

Open klimpel opened this issue 2 years ago • 1 comments

H5D_OPEN fails on windows, with the error message: "H5D_OPEN: Invalid arguments to routine". This can be reproduced with TEST_HDF5_BYTE_ARRAY from testsuite/test_hdf5.pro, for example.

The reason for that error is the (long) cast in hdf5_fun.cpp line 1457: hid_t h5d_id= H5Dopen((long)h5f_id, h5dDatasetname.c_str()); The problem is that "long" has only 32 bits on windows, but hid_t is 64bit (since hdf5 1.10).

The (long) cast was introduced on Jan 29, 2019 in correction of change in hid_t format (now 64b in hdf5 1.10, before 32b) (bug #537)

klimpel avatar Jan 31 '24 17:01 klimpel

The current implementation does not appear to have that typecast anymore. @klimpel Can you test whether the issue still exists?

ogressel avatar Feb 17 '25 15:02 ogressel