[hdf-forum] Problem with H5Ovisit, H5Ovisit_by_name

Andrew Collette h5py at alfven.org
Fri Oct 31 18:19:25 EDT 2008


Hi,

I've encountered a little problem with the H5Ovisit* routines in HDF5
1.8.1, which seem to be ignoring the callback return value under certain
conditions.  The first name given to the callback is always ".",
however, returning a positive value (short-circuit success) in this case
does not halt iteration; the callback is immediately executed for the
first group member.  I've attached a short C program demonstrating this
behavior.

It seems returning a negative value will force iteration to stop in all
cases (including "."); however, this is sub-optimal as it invokes all
the error-handling machinery.

Does anyone know if there's a way around this?  Or is this intended
behavior?

Thanks,
Andrew Collette
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visit.c
Type: text/x-csrc
Size: 704 bytes
Desc: not available
URL: <http://mail.hdfgroup.org/pipermail/hdf-forum_hdfgroup.org/attachments/20081031/4350d5ab/attachment.bin>
-------------- next part --------------
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.


More information about the Hdf-forum mailing list