All,

I attempted creating the attribute for a file as below .

hid_t attr = H5Acreate(fileid,"Save Status", H5T_NATIVE_HBOOL, space,
H5P_DEFAULT);

space is defined as

                    hsize_t dims[1]={1};

                    hid_t space = H5Screate_simple(1, dims, NULL);

On execution I get this error

HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0.  Back
trace follows.

  #000: ..\..\src\H5A.c line 178 in H5Acreate(): location is not valid
for an attribute

    major(01): Function arguments

    minor(03): Inappropriate type

 

Can someone let me if at all we can create attributes with a file
identifier ?. If yes, how ?

 

Regards

Ramakrishnan

 

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to