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 
=============================================================================== 

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

Reply via email to