Hi again, Daniel,

A little correction to my previous message:
"If you continue using your current approach, you will need fg_p to be of
type Group so that the correct exception, GroupIException, would be thrown."

Should be:
"If you continue using your current approach, you will need fg_p to be of
type Group or H5File so that the correct exception, GroupIException or
FileIException, would be thrown."

I'm sure you could figure it out, but it makes me feel better saying it. :)
Binh-Minh 

>-----Original Message-----
>From: [email protected] [mailto:hdf-forum-
>[email protected]] On Behalf Of Binh-Minh Ribler
>Sent: Thursday, January 27, 2011 9:13 AM
>To: 'HDF Users Discussion List'
>Subject: Re: [Hdf-forum] C++ API: Which exception for openDataSet?
>
>Hi Daniel,
>
>As Quincey said, H5Lexist would be a better way, but the C++ API does not
>have a wrapper for that yet.  You could call H5Lexist directly, passing in
><object>.getId().
>
>If you continue using your current approach, you will need fg_p to be of
>type Group so that the correct exception, GroupIException, would be thrown.
>
>Binh-Minh
>
>>-----Original Message-----
>>From: [email protected] [mailto:hdf-forum-
>>[email protected]] On Behalf Of Daniel Hornung
>>Sent: Thursday, January 27, 2011 3:28 AM
>>To: HDF Users Discussion List
>>Subject: Re: [Hdf-forum] C++ API: Which exception for openDataSet?
>>
>>On 2011-01-26 19:02, Binh-Minh Ribler wrote:
>>> Hi Daniel,
>>>
>>> fg_p must point to either a H5File or Group object, not CommonFG.
>>> I hope that helps.
>>>
>>> Binh-Minh
>>
>>Hi Binh-Minh,
>>
>>fg_p is a pointer of type CommonFG, but points to an H5File or Group
>>object, of
>>course (CommonFG is abstract, so this can not be the problem anyway).
>>Sorry if
>>I was not clear enough on this.
>>
>>The output is as follows, by the way:
>>
>>Trying to open DS...
>>HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
>>  #000: H5D.c line 320 in H5Dopen2(): not found
>>    major: Dataset
>>    minor: Object not found
>>  #001: H5Gloc.c line 480 in H5G_loc_find(): can't find object
>>    major: Symbol table
>>    minor: Object not found
>>  #002: H5Gtraverse.c line 964 in H5G_traverse(): internal path traversal
>>failed
>>    major: Symbol table
>>    minor: Object not found
>>  #003: H5Gtraverse.c line 759 in H5G_traverse_real(): traversal operator
>>failed
>>    major: Symbol table
>>    minor: Callback failed
>>  #004: H5Gloc.c line 435 in H5G_loc_find_cb(): object 'datum' doesn't
>>exist
>>    major: Symbol table
>>    minor: Object not found
>>...
>>Does "datum" exist?     No <- This line comes from somewhere else in the
>>code
>>and means that false was returned.
>>
>>Cheers,
>>Daniel
>>
>
>
>
>_______________________________________________
>Hdf-forum is for HDF software users discussion.
>[email protected]
>http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG.
>Version: 7.5.549 / Virus Database: 270.9.0/1778 - Release Date: 11/9/2008
>2:14 PM



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

Reply via email to