[Nexus] Problems with NeXus 2.0.0
Sebastian Huber
sebastian-huber at web.de
Thu Sep 25 22:29:15 BST 2003
Hi,
I installed HDF 5 version 1.6.0 and NeXus 2.0.0 on SuSE 8.2. The test program
napi5_test fails due to an infinite loop in NX5getattrinfo:
NXstatus CALLING_STYLE NX5getattrinfo (NXhandle fid, int *iN)
{
pNexusFile5 pFile;
char *iname = NULL;
unsigned int idx;
int iRet;
pFile = NXI5assert (fid);
idx=0;
if (pFile->iCurrentD == 0 && pFile->iCurrentG == 0) {
/*
global attribute
*/
pFile->iVID=H5Gopen(pFile->iFID,"/");
iRet = H5Aiterate(pFile->iVID,&idx,attr_info,&iname);
iRet = 1;
while (iRet != 0) {
iRet = H5Aiterate(pFile->iVID,&idx,attr_info,&iname);
// This loop never exits, because iRet gets negative after four
// iterations.
}
[...]
If I create a NeXus file with
if (NXopen ("NXtest.nx5", NXACC_CREATE5, &fileid) != NX_OK) return 1;
if (NXclose (&fileid) != NX_OK) return 1;
and try to read it
./NXbrowse NXtest.nx5
NXBrowse 2.0.0. Copyright (C) 2000 R. Osborn, M. Koennecke, P. Klosowski
NeXus_version = 2.0.0.
file_name = NXtest.nx5
HDF5_Version = 1.6.0
file_time = 2003-09-25 23:20:08+0100
ERROR: Iteration was not successful
NX>
something fails. Is my HDF version to new or what might cause this error?
Ciao
Sebastian Huber
More information about the NeXus
mailing list