Bug in NAPI...

Ray Osborn ROsborn at anl.gov
Thu Feb 10 17:14:32 GMT 2000


on 2000/02/09 10:46 PM, Brian Tieman at tieman at aps.anl.gov wrote:

> Hi all,
> 
> I think I found a bug in NAPI as well as a few confusing
> inconsistancies.
> 

Thanks for raising this.  We will obviously try and sort out the problem as
soon as possible.  I will leave it to Mark Koennecke or Przemek Klosowski to
comment on the best way to deal with the specific bug.  As soon as we have a
fix, we will release an updated version.

> 
> Also, looking at the code, I had to wonder about a couple of things.
> One is that the documentation says that NXgetslab expects start and end
> indices, but the NXgetslab prototype expects iStart and iSize not iEnd.
> I origionally thought this was my problem until I looked up how
> SDreaddata is supposed to work.  Two, should all the NAPI calls be using
> an explicit sized integer for parameter passing?  SDreaddata needs
> int32, but the prototype allows for int--which is machine dependant and
> how I got into trouble in the first place.
> 

Which documentation are you referring to?  The most reliable and up-to-date
documentation will always be the web pages.  I've just checked that they all
give the correct description of the meaning of the size variable (at least
in NXgetslab).  It's true that there was some confusion about the meaning of
the second variable in SDreaddata, but that was cleared up quite a while
ago.  I suspect you are referring to NAPI.TEX, which has not been updated
since the first release two years ago.  Perhaps I should remove it from the
distribution until we've updated it.  It was only meant to document the
design philosophy of NAPI, and should not be used as a detailed reference of
the latest version.

Thanks again for reporting this,
Ray Osborn
-- 
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 mailing list