Fail to read H5T_VLEN data

Hi Guys,

I failed to read dataset from one of my HDF5 file.
Function H5Dread did not report error; but output data buffer filled with nonsense characters.

The dataset is simple one rank string and I want read whole string.

This file can be opened by application HDFView without problem.
How does HDFView read these dataset?
I really can not find any problem within my code.
What am I doing wrong or what am I missing?

Can somebody help me to check?

Many thanks,

Kathryn Yao Peng
Software Developer
Phone:905-764-0614 Ext:2233
Fax:905-764-0153
Email:peng@pcigeomatics.com
WebSite:www.pcigeomatics.com

···

-----Original Message-----
From: Kathryn (Yao) Peng
Sent: Wednesday, November 18, 2009 11:19 AM
To: 'hdf-forum@hdfgroup.org'
Subject: RE: [Hdf-forum] Build failed HDF 4.2r4 on MacOS X 10.6 with intel fortran

Hi,

I have a question about current support status of type H5T_VLEN.
I failed read this dataset because of my dataset type is H5T_VLEN.

I can see; function "H5T_vlen_disk_read" attached to this type of data.
During reading; it is actually read by function "H5D_scatgath_read".
I think some problem related this data type.

I did not get any error and buffer is filled with nonsense.

Thanks,
Kathryn

-----Original Message-----
From: Kathryn (Yao) Peng
Sent: Tuesday, November 17, 2009 11:32 AM
To: 'hdf-forum@hdfgroup.org'
Subject: RE: [Hdf-forum] Build failed HDF 4.2r4 on MacOS X 10.6 with intel fortran

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Sean McBride
Sent: Tuesday, November 17, 2009 10:51 AM
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] Build failed HDF 4.2r4 on MacOS X 10.6 with intel fortran

On 11/17/09 4:57 PM, HAGIHARA Yuichiro said:

Recently I upgraded to OS 10.6 with Xcode 3.1.2(gcc 4.2.1).

Is that also a typo? Mac OS X 10.6 does not support Xcode 3.1.x, you
need to use 3.2 or later.

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org