Hi everyone,

 This issue is resolved now. The code is not calling H5open() and relies
on the default values but it is calling H5close() at the end of first
pass. 
On the second pass the static objects are not available causing my
application to fail whenever I access static objects.


I have corrected this and its working fine now.

Regards,
Alok




Please follow the attached hyperlink to an important disclaimer
http://www.credit-suisse.com/asiapac/legal/securities/ 


-----Original Message-----
From: Jadhav, Alok 
Sent: Tuesday, April 10, 2012 7:54 AM
To: '[email protected]'; 'Gerd Heber'
Cc: '[email protected]'
Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache


Also, I was confused with my dir structure. I am using the hdf c++
library version 1.8.4 (and not HDF5dotNet )

Regards,
Alok




Please follow the attached hyperlink to an important disclaimer
http://www.credit-suisse.com/asiapac/legal/securities/ 


-----Original Message-----
From: Jadhav, Alok
Sent: Tuesday, April 10, 2012 7:52 AM
To: '[email protected]'; 'Gerd Heber'
Cc: '[email protected]'
Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache

 
Heber,

 I have been having discussion with Binh-Minh on a different thread. I
was going to update the group once the issue is resolved.

Using the parameter less constructor for FileAccPropList resolved the
issue with getCache exception. But now I am getting an exception with
file creation. (This too happens on the second file in the sequence but
the first file works fine).

Will explore more as BM has suggested below.

Regards,
Alok




Please follow the attached hyperlink to an important disclaimer
http://www.credit-suisse.com/asiapac/legal/securities/ 


-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, April 10, 2012 2:37 AM
To: Jadhav, Alok
Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache

Quoting "Jadhav, Alok" <[email protected]>:

> Hi Binh-Minh,
>
> Actually in old library also we have the parameter less constructor.
>
> We have to use
> H5::FileAccPropList fapl;
>
> Instead of
>
> H5::FileAccPropList fapl();
>
> :)

Ah, I forgot. :)
>
> Anyways, this time I am not getting any exception on fapl.getCache, so

> looks like the previous issue is resolved but then I am getting an 
> error in HFFile() constructor
>
> file = new H5File(filename, H5F_ACC_TRUNC, 
> H5::FileCreatPropList::DEFAULT, fapl);
>
> Do I have to change anything in above call? I am getting following 
> exception.
>
> "H5Fcreate failed"
>
> I guess H5Fcreate() function call.

Nothing popped out at me on this.  However, because H5Fcreate failed, I
suspect it has something to do with the status of the file or the
property list.  Could you check the HDF5 C Reference manual of
H5Pget/set_cache to see if there is any notes that might give you some
hints regarding cache/property list/brand new file?  Also, how about
permission to create or truncate the file?

I won't be available until the evening, but I'll try to read mail before
then.

Binh-Minh
>
> Microsoft C++ exception: H5::FileIException at memory location 
> 0x0021f490..
>
> Any suggestions?
>
> Regards,
> Alok
>
>
>
>
> Please follow the attached hyperlink to an important disclaimer 
> http://www.credit-suisse.com/asiapac/legal/securities/
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Monday, April 09, 2012 1:43 PM
> To: Jadhav, Alok
> Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
>
> Nothing came to mind, but because the C++ API had not been supported 
> much, many features were not implemented for some time.  Even now, it 
> still doesn't have all the wrappers implemented.
>
> Please let me know how it turns out and if you need further
assistance.
> Tomorrow, I'll try to take a look at the 1.8.4, just out of
curiosity...
>
> Binh-Minh
>
> Quoting "Jadhav, Alok" <[email protected]>:
>
>> I will try it out. Though was there any issue with FileAccPropList in

>> previous version that could cause this problem.
>>
>> Regards,
>> Alok
>>
>>
>>
>>
>> Please follow the attached hyperlink to an important disclaimer 
>> http://www.credit-suisse.com/asiapac/legal/securities/
>>
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]]
>> Sent: Monday, April 09, 2012 12:27 PM
>> To: Jadhav, Alok
>> Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
>>
>> BTW, you can download the new version from here 
>> http://www.hdfgroup.org/HDF5/ if you can upgrade.
>>
>> Quoting "Jadhav, Alok" <[email protected]>:
>>
>>> You are correct. Both libraries were in same parent folder so I got 
>>> confused. I am using C++ library with version HDF5 1.8.4
>>>
>>> Regards,
>>> Alok
>>>
>>>
>>>
>>>
>>> Please follow the attached hyperlink to an important disclaimer 
>>> http://www.credit-suisse.com/asiapac/legal/securities/
>>>
>>>
>>> -----Original Message-----
>>> From: [email protected] [mailto:[email protected]]
>>> Sent: Monday, April 09, 2012 12:10 PM
>>> To: Jadhav, Alok
>>> Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
>>>
>>> Yes, that is the HDF5DotNet, but there is no FileAccPropList class 
>>> in
>
>>> it, I think.  This is the C++ library Reference Manual:
>>> http://www.hdfgroup.org/HDF5/doc/cpplus_RM/index.html
>>>
>>> If you see FileAccPropList in the HDF5DotNet, please send me the 
>>> link,
>>
>>> for I may have mistaken.
>>>
>>> Quoting "Jadhav, Alok" <[email protected]>:
>>>
>>>> I am using following API
>>>> http://hdf5.net/
>>>>
>>>>
>>>>
>>>>
>>>> Please follow the attached hyperlink to an important disclaimer 
>>>> http://www.credit-suisse.com/asiapac/legal/securities/
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: [email protected] [mailto:[email protected]]
>>>> Sent: Monday, April 09, 2012 11:37 AM
>>>> To: Jadhav, Alok
>>>> Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
>>>>
>>>> Sorry that I just sent another message same as the previous one to 
>>>> the
>>>
>>>> forum by mistake!!!  I thought you were using the C++ API...
>>>>
>>>> Binh-Minh
>>>>
>>>> Quoting "Jadhav, Alok" <[email protected]>:
>>>>
>>>>>
>>>>> Hi Binh-Minh,
>>>>>
>>>>>  I am using hdf5DotNet library in my application. I don't have a 
>>>>> parameter less constructor for FileAccPropList class. I see 2 
>>>>> constructors, with following parameters
>>>>>
>>>>> Contructor 1 arguments: const FileAccPropList& original 
>>>>> Constructor
>>>>> 2
>>>>> arguments: const hid_t plist_id
>>>>>
>>>>> Is it because of the library that I am using. Do we get support on

>>>>> hdf5DotNet library on this forum or is there a different forum for
>>>> this?
>>>>>
>>>>> Regards,
>>>>> Alok
>>>>>
>>>>>
>>>>>
>>>>> Please follow the attached hyperlink to an important disclaimer 
>>>>> http://www.credit-suisse.com/asiapac/legal/securities/
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: [email protected] [mailto:[email protected]]
>>>>> Sent: Monday, April 09, 2012 11:12 AM
>>>>> To: Jadhav, Alok
>>>>> Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
>>>>>
>>>>> Hi Alok,
>>>>>
>>>>> Have you tried replacing
>>>>>
>>>>> H5::FileAccPropList fapl(H5::FileAccPropList::DEFAULT);
>>>>>
>>>>> with
>>>>>
>>>>> H5::FileAccPropList fapl();?
>>>>>
>>>>> If not, please try that.
>>>>>
>>>>> Binh-Minh
>>>>>
>>>>> Quoting "Jadhav, Alok" <[email protected]>:
>>>>>
>>>>>> Hi Binh-Minh,
>>>>>>
>>>>>> I still have problem with getCache. Nothing has changed. When I 
>>>>>> try
>>
>>>>>> to
>>>>>
>>>>>> create a new HDF5 file (the 2nd file), fapl.getCache raises 
>>>>>> exception
>>>>
>>>>>> as described below.
>>>>>>
>>>>>> Regards,
>>>>>> Alok
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please follow the attached hyperlink to an important disclaimer 
>>>>>> http://www.credit-suisse.com/asiapac/legal/securities/
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: [email protected] [mailto:[email protected]]
>>>>>> Sent: Monday, April 09, 2012 10:44 AM
>>>>>> To: HDF Users Discussion List; Jadhav, Alok
>>>>>> Subject: Re: [Hdf-forum] Error in FileAccPropList::getCache
>>>>>>
>>>>>> Hi Alok,
>>>>>>
>>>>>> Does that mean you don't have problem with getCache anymore?
>>>>>>
>>>>>> Binh-Minh
>>>>>>
>>>>>> Quoting "Jadhav, Alok" <[email protected]>:
>>>>>>
>>>>>>> Hi Quincey,
>>>>>>>
>>>>>>> Thanks for your repl.
>>>>>>>
>>>>>>> fyi, below code works fine when i open a file in my first pass 
>>>>>>> but
>>
>>>>>>> its
>>>>>>
>>>>>>> failing on 2nd time i try to open a different file (different
>>>>>> filename).
>>>>>>> I am sure that i close the previous file without any errors.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Alok
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Please follow the attached hyperlink to an important disclaimer
>>>>>>>
>>>>>>> http://www.credit-suisse.com/asiapac/legal/securities/
>>>>>>> <http://www.credit-suisse.com/asiapac/legal/securities/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ________________________________
>>>>>>>
>>>>>>> From: [email protected] 
>>>>>>> [mailto:[email protected]] On Behalf Of Quincey 
>>>>>>> Koziol
>>>>>>> Sent: Saturday, April 07, 2012 12:28 AM
>>>>>>> To: HDF Users Discussion List
>>>>>>> Subject: Re: [Hdf-forum] Error in FileAccPropList::getCache
>>>>>>>
>>>>>>>
>>>>>>> Hi Alok,
>>>>>>> Looks OK to me, I'll CC our C++ maintainer and see what she
says.
>>>>>>>
>>>>>>> Quincey
>>>>>>>
>>>>>>>
>>>>>>> On Apr 5, 2012, at 11:14 PM, Jadhav, Alok wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>         Hi everyone,
>>>>>>>
>>>>>>>          I have been using hdf5 library for a while now but
never had 
>>>>>>> to
>>>>>> look
>>>>>>> inside the code. I am making some changes in my software and I 
>>>>>>> getting
>>>>>>
>>>>>>> H5Pget_cache failed exception. I am not sure what this exception

>>>>>>> means. Earlier I was opening an hdf5 file and then close the 
>>>>>>> application. Now what I have changed is, if I want to working on

>>>>>>> multiple files of data, I don't close my application but I close

>>>>>>> previous hdf5 file and then open a new one. The way I create a 
>>>>>>> new
>>>>>>> hdf5 file is as follows. Please advise what am I doing incorrect

>>>>>>> here
>>>>>>>
>>>>>>>         <code>
>>>>>>>                 try{
>>>>>>>                                 ///////////////////////////
>>>>>>>                                 // Disable chunk cache
>>>>>>>                                 H5::FileAccPropList 
>>>>>>> fapl(H5::FileAccPropList::DEFAULT);
>>>>>>>                                 int mdc_nelmts;
>>>>>>>                                 size_t rdcc_nelmts;
>>>>>>>                                 size_t rdcc_nbytes;
>>>>>>>                                 double rdcc_w0;
>>>>>>>
>>>>>>> fapl.getCache(mdc_nelmts,rdcc_nelmts,rdcc_nbytes,rdcc_w0);
>>>>>>>                                 rdcc_nbytes = 0;
>>>>>>>
>>>>>>> fapl.setCache(mdc_nelmts,rdcc_nelmts,rdcc_nbytes,rdcc_w0);
>>>>>>>                                 //////////////////////////
>>>>>>>                                 file = new H5File(filename,
>>>>>> H5F_ACC_TRUNC,
>>>>>>>
>>>>>>> H5::FileCreatPropList::DEFAULT, fapl);
>>>>>>>
>>>>>>>                         } catch(H5::PropListIException error) {
>>>>>>>                                 error.printError();
>>>>>>>                                 throw error;
>>>>>>>                         }
>>>>>>>         </code>
>>>>>>>
>>>>>>>         Regards,
>>>>>>>         Alok
>>>>>>>
>>>>>>>         Please follow the attached hyperlink to an important
disclaimer
>>>>>>>         http://www.credit-suisse.com/asiapac/legal/securities/
>>>>>>> <http://www.credit-suisse.com/asiapac/legal/securities/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ================================================================
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> ==
>>>>>>> ======
>>>>>>>         Please access the attached hyperlink for an important 
>>>>>>> electronic
>>>>>>
>>>>>>> communications disclaimer:
>>>>>>>
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>>>>>>
>>>>>>> ================================================================
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> ==
>>>>>>> ======
>>>>>>>
>>>>>>>
>>>>>>>         _______________________________________________
>>>>>>>         Hdf-forum is for HDF software users discussion.
>>>>>>>         [email protected]
>>>>>>>         
>>>>>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ================================================================
>>>>>>> = = = = = = ========= Please access the attached hyperlink for 
>>>>>>> an important electronic communications disclaimer:
>>>>>>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>>>>>> ================================================================
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =
>>>>>>> =========
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> =================================================================
>>>>>> = = = = = ========= Please access the attached hyperlink for an 
>>>>>> important electronic communications disclaimer:
>>>>>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>>>>> =================================================================
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =
>>>>>> =========
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ==================================================================
>>>>> = = = = ========= Please access the attached hyperlink for an 
>>>>> important electronic communications disclaimer:
>>>>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>>>> ==================================================================
>>>>> =
>>>>> =
>>>>> =
>>>>> =
>>>>> =========
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ===================================================================
>>>> = = = ========= Please access the attached hyperlink for an 
>>>> important electronic communications disclaimer:
>>>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>>> ===================================================================
>>>> =
>>>> =
>>>> =
>>>> =========
>>>>
>>>>
>>>
>>>
>>>
>>> ====================================================================
>>> = = ========= Please access the attached hyperlink for an important 
>>> electronic communications disclaimer:
>>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>> ====================================================================
>>> =
>>> =
>>> =========
>>>
>>>
>>
>>
>>
>> =====================================================================
>> = ========= Please access the attached hyperlink for an important 
>> electronic communications disclaimer:
>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>> =====================================================================
>> =
>> =========
>>
>>
>
>
>
>
> ======================================================================
> ========= Please access the attached hyperlink for an important 
> electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ======================================================================
> =========
>
>




=============================================================================== 
Please access the attached hyperlink for an important electronic communications 
disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


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

Reply via email to