Hi Ed,
Hmm, the program seems to be running fine here. This is the output:
number of data in dataset: 1
number of data in dataset: 1
the float: 99.900002
number of data in dataset: 2
number of data in dataset: 2
the float: 88.800003
What machine are you running on? What version of HDF5?
Quincey
> Do me a favor, compile and run this program.
>
> When I chage this program to use a contiguous dataset, and take out
> the H5Dextend call, everything works. But using an extendable dataset,
> it give me a seg fault.
>
> Obviously I'm doing something wrong with respect to my setting up or
> using the chunked dataset. I'm going to reread the docs and see what
> they say again...
>
> Ed
>From owner-netcdf-hdf@xxxxxxxxxxxxxxxx 29 2003 Oct -0700 10:18:00
Message-ID: <wrxbrs0hsjb.fsf@xxxxxxxxxxxxxxxxxxxxxxx>
Date: 29 Oct 2003 10:18:00 -0700
From: Ed Hartnett <ed@xxxxxxxxxxxxxxxx>
To: netcdf-hdf@xxxxxxxxxxxxxxxx
Subject: confusion about H5Gget_objname_by_idx
Received: (from majordo@localhost)
by unidata.ucar.edu (UCAR/Unidata) id h9THI1Jo021523
for netcdf-hdf-out; Wed, 29 Oct 2003 10:18:01 -0700 (MST)
Received: from rodney.unidata.ucar.edu (rodney.unidata.ucar.edu
[128.117.140.88])
by unidata.ucar.edu (UCAR/Unidata) with ESMTP id h9THI0Ob021515
for <netcdf-hdf@xxxxxxxxxxxxxxxx>; Wed, 29 Oct 2003 10:18:00 -0700 (MST)
Organization: UCAR/Unidata
Keywords: 200310291718.h9THI0Ob021515
Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-netcdf-hdf@xxxxxxxxxxxxxxxx
Precedence: bulk
Howdy all!
Seems like an error in the docs. The ref manual sez: (note last parameter)
Name: H5Gget_objname_by_idx
Signature:
ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char
*name, size_t* size )
But, H5Gpublic.h contains the following:
H5_DLL ssize_t H5Gget_objname_by_idx(hid_t loc_id, hsize_t idx, char* name,
size_t size);
The last parameter is not a pointer after all!
Ed