Hi everyone,
I found the issue. I wasn't compiling my application with the latest vs2010 library (reference path problems). Its working fine now. Thanks. Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: Binh-Minh Ribler [mailto:[email protected]] Sent: Friday, July 27, 2012 3:10 PM To: Jadhav, Alok Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Alok, would you please drop a note to the Hdf-forum later to give an update on your question? Then, I'll see it too. Thanks! Binh-Minh ________________________________ From: Jadhav, Alok [mailto:[email protected]] Sent: Friday, July 27, 2012 2:41 AM To: Binh-Minh Ribler Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 No. I am working on compiling with the new library now. INDEX vs index I will try later. I know INDEX was working fine in vs2009 version. I don't think it should cause any issue. I will try it once I have the new library up and running. Don't wait for me now, lets discuss on Monday. Thanks for your time. Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: Binh-Minh Ribler [mailto:[email protected]] Sent: Friday, July 27, 2012 2:39 PM To: Jadhav, Alok Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Did you try replacing "INDEX" with "index"? It's 2:30AM here so I'm not sure I'm going to last much longer... ________________________________ From: Jadhav, Alok [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 2:18 AM To: Binh-Minh Ribler Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 I will download the vs2010 compiled library and try again. Fyi, size_t offset_n1 = HOFFSET(FIELD,index); size_t offset_n2 = HOFFSET(FIELD,field); size_t offset_n3 = HOFFSET(FIELD,source); // here offset_n1 = 0 offset_n2=4 and offset_n3 = 20 which is as expected. atype.insertMember(n1,offset_n1,PredType::NATIVE_INT); atype.insertMember(n2,offset_n2,stype); atype.insertMember(n3,offset_n3,stype); Let me first try to compile with the latest library. regards, Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: Binh-Minh Ribler [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 2:12 PM To: Jadhav, Alok Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Does this help: http://www.hdfgroup.org/HDF5/release/obtain5.html? ________________________________ From: Jadhav, Alok [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 2:04 AM To: Binh-Minh Ribler Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Hi, I am on version 1.8.4 as of now. I think this could actually be a problem. I thought I had updated my links to a new library compiled with vs2010 but I couldn't find it. Could you provide me a link to a vs2010 library of hdf5? Regards, Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: Binh-Minh Ribler [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 1:57 PM To: Jadhav, Alok Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Also, which version of hdf5 are you using, Alok? ________________________________ From: Jadhav, Alok [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 1:23 AM To: Binh-Minh Ribler Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Hi Binh-Minh, Good to hear from you again J Here are some more details on FIELD #define FIELD_STR_LEN 16 typedef struct { int index; char field[FIELD_STR_LEN]; char source[FIELD_STR_LEN]; } FIELD; Regards, Alok Alok Jadhav GAT IT Hong Kong +852 2101 6274 (*852 6274) From: Binh-Minh Ribler [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> Sent: Friday, July 27, 2012 1:20 PM To: Jadhav, Alok Subject: RE: [Hdf-forum] hdf5 comptype error in vs2010 Hello Alok, Did you have any luck figuring out this problem yet? If not, would you send me some more info? Would you send me the definition of FIELD and FIELD_STR_LEN? Thank you Binh-Minh ________________________________ From: [email protected] [mailto:[email protected]] <mailto:%5bmailto:[email protected]%5d> On Behalf Of Jadhav, Alok Sent: Thursday, July 26, 2012 9:55 PM To: [email protected] Subject: [Hdf-forum] hdf5 comptype error in vs2010 Hi guys, I am working on migrating my application from vs2008 to vs2010. The code which was working fine with vs2008 library is giving me error with vs2010 library. Following is a sample code H5std_string n1("INDEX"); H5std_string n2("FIELD"); H5std_string n3("SOURCE"); StrType stype(PredType::C_S1,FIELD_STR_LEN); CompType atype(sizeof(FIELD)); atype.insertMember(n1,HOFFSET(FIELD,index),PredType::NATIVE_INT); atype.insertMember(n2,HOFFSET(FIELD,field),stype); atype.insertMember(n3,HOFFSET(FIELD,source),stype); Above code is raising exception at line atype.inserMember() function call. Exception is "Access violation reading location 0x001c0058." I am not sure why this exception is coming. Can someone help me rectify this issue? Regards, Alok Jadhav CREDIT SUISSE AG GAT IT Hong Kong, KVAG 67 International Commerce Centre | Hong Kong | Hong Kong Phone +852 2101 6274 | Mobile +852 9169 7172 [email protected] | www.credit-suisse.com <http://www.credit-suisse.com/> ======================================================================== ====== 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
