[Nexus-developers] Nxdump problem

Ray Osborn ROsborn at anl.gov
Tue Aug 20 13:24:29 BST 2002


I've made some progress in understanding the Nxdump problem, but I've not
been able to cure it.  The basic problem is that in napi5.c, the current
directory index, iCurrentIDX, is stored at the top-level of the NXhandle
structure, whereas in napi4.c, iCurDir is stored within the stack.  This
means that when you open and close a new group in a recursive directory
search, the index gets globally initialized in napi5.c.  In napi4.c, it only
gets initialized at each stack level, so its value is preserved for the
higher level group.

I think this is a very important issue for programs that use NXgetnextentry
to compile complete directory trees.  I tried moving it into the stack, and
repositioning NXIKillDir so that it only get initialized when we close a
group, but it is still not working.  There may be things I don't understand
about H5GIterate.

Mark, is there a fundamental problem with HDF5 that isn't in HDF4, or can we
preserve the old behaviour?

Regards,
Ray
-- 
Dr Ray Osborn                Tel: +1 (630) 252-9011
Materials Science Division   Fax: +1 (630) 252-7777
Argonne National Laboratory  E-mail: ROsborn at anl.gov
Argonne, IL 60439-4845





More information about the NeXus-developers mailing list