[Hdf-forum] problem with H5Gget_objinfo in 1.6.10

Mark Howison mark.howison at gmail.com
Fri Jan 15 11:23:36 EST 2010


Hi all,

I have a piece of code that checks for the existence of a group at
"/Step#0" by calling this on the file id:

H5Gget_objinfo( file_id, name, 1, NULL );

I've tried both name="/Step#0" and name="Step#0". Also, I've tried

g_id = H5Gopen(file_id, "/");
H5Gget_objinfo( g_id, name, 1, NULL );

but in all cases, I receive error messages of this type:

HDF5-DIAG: Error detected in HDF5 library version: 1.6.10 MPI-process
3.  Back trace follows.
  #000: H5G.c line 753 in H5Gget_objinfo(): cannot stat object
    major(01): Function arguments
    minor(29): Unable to initialize object
  #001: H5G.c line 2134 in H5G_get_objinfo(): unable to stat object
    major(10): Symbol table layer
    minor(48): Object not found
  #002: H5Gtraverse.c line 397 in H5G_namei(): component not found
    major(10): Symbol table layer
    minor(48): Object not found
  #003: H5Gstab.c line 161 in H5G_stab_find(): not found
    major(10): Symbol table layer
    minor(48): Object not found

When using 1.8.x, we skip H5Gget_objinfo all together and use
H5Lexists instead, but we would like to maintain compatibility with
1.6.x.

Thanks
Mark



More information about the Hdf-forum mailing list