Error that I am getting is from H5Fcreate() function call.
···
------------------------------------------------------------------------
--*/
htri_t
H5P_isa_class(hid_t plist_id, hid_t pclass_id)
{
.
.
.
/* Check arguments. */
if(NULL == (plist = (H5P_genplist_t
*)H5I_object_verify(plist_id, H5I_GENPROP_LST))) // ERROR COMING ON
THIS LINE
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property
list")
.
.
.
}
Error is coming on line
if(NULL == (plist = (H5P_genplist_t
*)H5I_object_verify(plist_id, H5I_GENPROP_LST)))
Can someone tell me more on why the above error is coming (not a
property list) ?
Original function call is
H5::FileAccPropList fapl;
file = new H5File(filename,
H5F_ACC_TRUNC,H5::FileCreatPropList::DEFAULT, fapl);
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 8:10 AM
To: 'bmribler@hdfgroup.org'
Cc: 'hdf-forum@hdfgroup.org'
Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
Hi Binh-Minh,
Issue is that during first file, first hdf5 is created without any
error. Now when same function is called to create the next hdf5 file
(after closing the previous hdf5 file) I am getting this error. I will
post the code for your reference again.
<code>
H5::FileAccPropList fapl;
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); </code>
I am sure there is no issue with permissions as the 1st file is created
without any error. The direcotry is empty so it's a new file.
What about 3rd and 4th parameter in the H5File constructor?
Still at a loss to resolve this issue.
Regards,
Alok
Please follow the attached hyperlink to an important disclaimer
http://www.credit-suisse.com/asiapac/legal/securities/
-----Original Message-----
From: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
Sent: Tuesday, April 10, 2012 2:37 AM
To: Jadhav, Alok
Subject: RE: [Hdf-forum] Error in FileAccPropList::getCache
Quoting "Jadhav, Alok" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: bmribler@hdfgroup.org [mailto:bmribler@hdfgroup.org]
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" <alok.jadhav@credit-suisse.com>:
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: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] 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.
Hdf-forum@hdfgroup.org
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