On Thu, 1 Dec 2005, Peter W. Draper wrote:
> For some reason the HDS locators being passed from ARY are invalid (why I
> don't know) and as for the C case mentioned earlier this gives a core dump.
> Looking closer I can see that one reason for this is that the status return
> from all the calls in datlocops to dat1_import_loc are not checked and the
> LCP is returned as NULL, next line dereferences this, so down it goes.
Code that checks status itself after import does
not use _call() but all others now done hopefully.
I've also removed the attempt to print the contents of the struct on error
in dat1_import_loc. The fortran routine dat1_import_floc now spots the
obvious DAT__ROOT and DAT__NOLOC errors itself and reports. You won't
see any other useful error message though unless I factor out the "check
validity" code so that datImportFloc can spot a DAT__LOCIN early.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|