>> ndfAnnul( ondf );
>
> Clearly this call is broken and should be "ndfAnnul( &ondf, status );", I'll
> assume that's a transcription problem?
Yes :) (I was using cygwin from home and had a problem copying and
pasting between my code and email windows so I just typed them...)
> This is worrying, I've tried to re-create the problem using my machines
> (64bit/SL4.2 & 32bit/FC5) and I don't see the problem. Tried various
> combinations of input files (HDS4 and HDS3, with different data types) and
> output files. Tim, does this sound like one of the outstanding HDS issues?
>
> I've attached my test program to this message for you and anyone else to try
> out. The link command is:
>
> gcc -o ndf_ctest -I$STARCONF_DEFAULT_PREFIX/include ndf_ctest.c \
> -L$STARCONF_DEFAULT_PREFIX/lib `ndf_link` `cnfrtl_link` `ndg_link`
> `grp_link`
>
> It takes an NDF "frame.sdf" as input and creates an NDF "ndf_test.sdf".
This test code seems to work fine (it adds a variance component). Here's
the output :
[echapin@bends test]$ ./ndf_ctest
Both NDFs open
/home/echapin/star-build/test/ndf_test.sdf, disp=[K], mode=[U], refcnt=1,
64-bit=[N]
/home/echapin/star-build/test/frame.sdf, disp=[K], mode=[R], refcnt=1,
64-bit=[N]
Output NDF open
/home/echapin/star-build/test/ndf_test.sdf, disp=[K], mode=[U], refcnt=1,
64-bit=[N]
Both NDFs closed
So... must be something else in the code messing things up...
thanks for looking into this,
Ed
--
+----------------------------------------------------------------+
| Dr. Edward Chapin (604) 822-6709 (work) |
| Dept. of Physics and Astronomy |
| University of British Columbia |
| 6224 Agricultural Road, Vancouver, B.C. |
| V6T 1Z1, Canada [log in to unmask] |
+----------------------------------------------------------------+
|