extend compound dataset

Hi All,
Newbie here.
Is there a way to expand a compound data type?
Below is my current implementation where a compound dataset of a
structure (ParticleStruct) with e.g. 20 fields:
hid_t particleStruct_tid = H5Tcreate(H5T_COMPOUND, sizeof(ParticleStruct));

H5Tinsert(particleStruct_tid, "index", HOFFSET(ParticleStruct, ipart),
H5T_NATIVE_INT);
...

hsize_t dim[1], maxDim[1];
dim[0] = numParticles;
hid_t space_id = H5Screate_simple(1, dim, NULL);
...

I would like to allow future expansion, e.g. increasing the number of
fields to 25 from 20. I tried below, but failed.
...
hsize_t dim[2], maxDim[2];
dim[0] = numParticles;
dim[1] = H5Tget_size(particleStruct_tid);
maxDim[0] = maxDim[1] = H5S_UNLIMITED;
hid_t space_id = H5Screate_simple(2, dim, maxDim);
...

Does such capability exist in HDF5? If so, what shall I do? Thanks a lot
for your help.

Best,
xunlei

Hi Xunlei,

···

On Dec 14, 2009, at 2:06 AM, Xunlei Wu wrote:

Hi All,
Newbie here.
Is there a way to expand a compound data type?
Below is my current implementation where a compound dataset of a
structure (ParticleStruct) with e.g. 20 fields:
hid_t particleStruct_tid = H5Tcreate(H5T_COMPOUND, sizeof(ParticleStruct));

H5Tinsert(particleStruct_tid, "index", HOFFSET(ParticleStruct, ipart),
H5T_NATIVE_INT);
...

hsize_t dim[1], maxDim[1];
dim[0] = numParticles;
hid_t space_id = H5Screate_simple(1, dim, NULL);
...

I would like to allow future expansion, e.g. increasing the number of
fields to 25 from 20. I tried below, but failed.
...
hsize_t dim[2], maxDim[2];
dim[0] = numParticles;
dim[1] = H5Tget_size(particleStruct_tid);
maxDim[0] = maxDim[1] = H5S_UNLIMITED;
hid_t space_id = H5Screate_simple(2, dim, maxDim);
...

Does such capability exist in HDF5? If so, what shall I do? Thanks a lot
for your help.

  There's no capability to add fields a compound datatype currently. If you want to do this, you'd have to copy the data into a new dataset, with more fields in its datatype. (If you want to extent the dataspace (i.e. the number of elements you have in the dataset), you should use the H5Dset_extent API call).

  Quincey

Quincey,

Thank you very much.

Best,
xunlei

Quincey Koziol wrote:

···

Hi Xunlei,

On Dec 14, 2009, at 2:06 AM, Xunlei Wu wrote:

Hi All,
Newbie here.
Is there a way to expand a compound data type?
Below is my current implementation where a compound dataset of a
structure (ParticleStruct) with e.g. 20 fields:
hid_t particleStruct_tid = H5Tcreate(H5T_COMPOUND, sizeof(ParticleStruct));

H5Tinsert(particleStruct_tid, "index", HOFFSET(ParticleStruct, ipart),
H5T_NATIVE_INT);
...

hsize_t dim[1], maxDim[1];
dim[0] = numParticles;
hid_t space_id = H5Screate_simple(1, dim, NULL);
...

I would like to allow future expansion, e.g. increasing the number of
fields to 25 from 20. I tried below, but failed.
...
hsize_t dim[2], maxDim[2];
dim[0] = numParticles;
dim[1] = H5Tget_size(particleStruct_tid);
maxDim[0] = maxDim[1] = H5S_UNLIMITED;
hid_t space_id = H5Screate_simple(2, dim, maxDim);
...

Does such capability exist in HDF5? If so, what shall I do? Thanks a lot
for your help.
    
  There's no capability to add fields a compound datatype currently. If you want to do this, you'd have to copy the data into a new dataset, with more fields in its datatype. (If you want to extent the dataspace (i.e. the number of elements you have in the dataset), you should use the H5Dset_extent API call).

  Quincey

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

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

Thanks a lot.

Best,
xunlei

Hi All,

I was follwing http://www.spscicomp.org/ScicomP14/talks/Yang.ppt to
enable parallel HDF5 data writing.

Are H5Pset_fapl_mpio() and H5Pset_dxpl_mpio() defined in the precompiled
Windows (32-bit) version of HDF5 1.8.4?
http://www.hdfgroup.org/HDF5/release/obtain5.html
I used Windows (32-bit) VS2008 C, c++, Intel Fortran 10.1 version.
VS2008 reported these two functions are not declared.

Thanks a lot.

Best,
xunlei

Xunlei Wu wrote:

···

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

Thanks a lot.

Best,
xunlei

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

Hi Xunlei,

···

On Dec 17, 2009, at 12:16 AM, Xunlei Wu wrote:

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

  The HDF5 library will create the MPI datatypes and perform all the necessary MPI calls, you don't need to do that. However, you do need to call H5Pset_dxpl_mpio() and pass the modified dataset transfer property list to H5Dread/H5Dwrite to indicate that you want collective I/O to occur (the default is independent I/O). All H5Awrite() calls must be collective, because you are modifying the file's metadata.

  Quincey

Hi Xunlei,

Hi All,

I was following http://www.spscicomp.org/ScicomP14/talks/Yang.ppt to
enable parallel HDF5 data writing.

Are H5Pset_fapl_mpio() and H5Pset_dxpl_mpio() defined in the precompiled
Windows (32-bit) version of HDF5 1.8.4?
http://www.hdfgroup.org/HDF5/release/obtain5.html
I used Windows (32-bit) VS2008 C, c++, Intel Fortran 10.1 version.
VS2008 reported these two functions are not declared.

  No, we don't support parallel I/O on Windows currently.

    Quincey

···

On Dec 17, 2009, at 2:28 AM, Xunlei Wu wrote:

Thanks a lot.

Best,
xunlei

Xunlei Wu wrote:

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

Thanks a lot.

Best,
xunlei

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

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

Hi Quincey,

Even if I recompile HDF5 from the source on Windows, I still won't get
access to

H5Pset_fapl_mpio(), H5Pset_dxpl_mpio()? H5_HAVE_PARALLEL is disabled on Windows currently right?

Best,
xunlei

Quincey Koziol wrote:

···

Hi Xunlei,

On Dec 17, 2009, at 2:28 AM, Xunlei Wu wrote:

Hi All,

I was following http://www.spscicomp.org/ScicomP14/talks/Yang.ppt to
enable parallel HDF5 data writing.

Are H5Pset_fapl_mpio() and H5Pset_dxpl_mpio() defined in the precompiled
Windows (32-bit) version of HDF5 1.8.4?
http://www.hdfgroup.org/HDF5/release/obtain5.html
I used Windows (32-bit) VS2008 C, c++, Intel Fortran 10.1 version.
VS2008 reported these two functions are not declared.
    
  No, we don't support parallel I/O on Windows currently.

    Quincey

Thanks a lot.

Best,
xunlei

Xunlei Wu wrote:
    

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

Thanks a lot.

Best,
xunlei

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

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

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1-64bit-vs2005-ivf91.zip
When I tried to run any utility in bin\, I got a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a working application, say MATLAB or NVIDIA driver folder. I presume these Dll's are compatible with Win7 64bit since all these applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe - Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the included Win32 ones. Compilation went smoothly. The newly created binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

Hi Xunlei,

Hi Quincey,

Even if I recompile HDF5 from the source on Windows, I still won't get access to

H5Pset_fapl_mpio(), H5Pset_dxpl_mpio()? H5_HAVE_PARALLEL is disabled on Windows currently right?

  Yes, I believe that's correct.

    Quincey

···

On Dec 17, 2009, at 8:42 PM, Xunlei Wu wrote:

Best,
xunlei

Quincey Koziol wrote:

Hi Xunlei,

On Dec 17, 2009, at 2:28 AM, Xunlei Wu wrote:

Hi All,

I was following http://www.spscicomp.org/ScicomP14/talks/Yang.ppt to
enable parallel HDF5 data writing.

Are H5Pset_fapl_mpio() and H5Pset_dxpl_mpio() defined in the precompiled
Windows (32-bit) version of HDF5 1.8.4?
http://www.hdfgroup.org/HDF5/release/obtain5.html
I used Windows (32-bit) VS2008 C, c++, Intel Fortran 10.1 version.
VS2008 reported these two functions are not declared.

  No, we don't support parallel I/O on Windows currently.

    Quincey

Thanks a lot.

Best,
xunlei

Xunlei Wu wrote:

Hi All,

I am writing a MPI program to write hdf5 data into one file. I would
like each process to write the data from memory to that file
independently/collectively whatever is supported, rather than MPI_Send
to root processor and write out to the file. I am testing the code on my
dual-core laptop and MPICH2. I guess my machine has no parallel file
system (GPFS, PVFS, Lustre) support.

Are the HDF5 I/O calls transparent to users whether there is GPFS
support or not? For instance, other than using H5*Write(), '*' stands
for A or D., from each process, do I need to construct MPI derived data
type and perform MPI collective IO or independent IO calls explicitly?

Thanks a lot.

Best,
xunlei

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

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

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

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

xunlei,

   This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

···

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1-64bit-vs2005-ivf91.zip
When I tried to run any utility in bin\, I got a "System Error" message
box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume these
Dll's are compatible with Win7 64bit since all these applications work
fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK to
close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created binary
files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

   This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

Hi Allen,

Is there a way to package HDF5 without any external libraries, e.g. szip and zlib? If I recompile from the source, I don't know why there is still a dependency on MSVCR80 (MSVC2005).

Actually, in my case, I have also downloaded the source of szip and zlib and compiled them in x64/Release mode in MSVC2008. Their accompanied example programs ran just fine.

Best,
x

···

On 3/16/2010 3:45 PM, Allen D Byrne wrote:

xunlei,

    This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1-64bit-vs2005-ivf91.zip
When I tried to run any utility in bin\, I got a "System Error" message
box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume these
Dll's are compatible with Win7 64bit since all these applications work
fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK to
close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created binary
files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

No they don't. I release Applications all the time with the C/C++ Runtimes next to the executable. There is some build setting in visual studio that allows this.

http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/

If you read nothing but the LAST line of the blog the blogger explains why binding to multiple C/C++ runtimes is a "Bad idea" and simply will not work. Sounds like something like this is going on here.

The original poster may want to try build HDF5 with the "CMake" version on Gitorious although that code base is only HDF5 V1.8.4 and does NOT have the "patch-1" additions/corrections to the codes.

···

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

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

Hi Michael,
On a Windows(7) machine, I should not worry about the data corruption issue which brought life to 1.8.4 patch 1, right?
Thanks a lot.
x

···

On 3/16/2010 4:23 PM, Michael Jackson wrote:

No they don't. I release Applications all the time with the C/C++ Runtimes next to the executable. There is some build setting in visual studio that allows this.

http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/

If you read nothing but the LAST line of the blog the blogger explains why binding to multiple C/C++ runtimes is a "Bad idea" and simply will not work. Sounds like something like this is going on here.

The original poster may want to try build HDF5 with the "CMake" version on Gitorious although that code base is only HDF5 V1.8.4 and does NOT have the "patch-1" additions/corrections to the codes.

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

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

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

Hi Michael,
Would you please post the lastest Git URL? thanks a lot.
x

···

On 3/16/2010 4:23 PM, Michael Jackson wrote:

No they don't. I release Applications all the time with the C/C++ Runtimes next to the executable. There is some build setting in visual studio that allows this.

http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/

If you read nothing but the LAST line of the blog the blogger explains why binding to multiple C/C++ runtimes is a "Bad idea" and simply will not work. Sounds like something like this is going on here.

The original poster may want to try build HDF5 with the "CMake" version on Gitorious although that code base is only HDF5 V1.8.4 and does NOT have the "patch-1" additions/corrections to the codes.

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

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

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

Www.gitorious.com/hdf5

That should get you started. From there you can pick the correct version of hdf5, either 1.6.9 or 1.8.4

Mike Jackson

···

Sent from my iPod

On Mar 16, 2010, at 17:03, "Dr. X" <xunlei@renci.org> wrote:

Hi Michael,
Would you please post the lastest Git URL? thanks a lot.
x

On 3/16/2010 4:23 PM, Michael Jackson wrote:

No they don't. I release Applications all the time with the C/C++ Runtimes next to the executable. There is some build setting in visual studio that allows this.

http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/

If you read nothing but the LAST line of the blog the blogger explains why binding to multiple C/C++ runtimes is a "Bad idea" and simply will not work. Sounds like something like this is going on here.

The original poster may want to try build HDF5 with the "CMake" version on Gitorious although that code base is only HDF5 V1.8.4 and does NOT have the "patch-1" additions/corrections to the codes.

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

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

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

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

Did that URL and subsequent build work around the issues that you were having?

···

___________________________________________________________
Mike Jackson www.bluequartz.net

On Mar 16, 2010, at 5:03 PM, Dr. X wrote:

Hi Michael,
Would you please post the lastest Git URL? thanks a lot.
x

On 3/16/2010 4:23 PM, Michael Jackson wrote:

No they don't. I release Applications all the time with the C/C++ Runtimes next to the executable. There is some build setting in visual studio that allows this.

http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/

If you read nothing but the LAST line of the blog the blogger explains why binding to multiple C/C++ runtimes is a "Bad idea" and simply will not work. Sounds like something like this is going on here.

The original poster may want to try build HDF5 with the "CMake" version on Gitorious although that code base is only HDF5 V1.8.4 and does NOT have the "patch-1" additions/corrections to the codes.

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:

This sounds like it might be a problem with side-by-side assemblies. The proper C runtimes must be installed on the client machine, the loader will not look for them in the same directory as the executable. See this MSDN article:

http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx

If this is the problem, it can be fixed by running vcredist_x86.exe to install the side-by-side assemblies on the target machine. You have to get the correct redistributable for the version of VC used to build the program. The redistributable for VS2005 SP1 is here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: Tuesday, March 16, 2010 2:46 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit

xunlei,

This is the second report of this. I've just not been able to locate why this is happening. I haven't altered the project files other then adding or deleting to the list of files. Any help on finding the source of the problem would be greatly appreciated.

Allen

Hi,

I have been trying to use 5-1.8.4 patch1 on my win7 64bit machine. I
first tried the pre-compiled version from
http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
-64bit-vs2005-ivf91.zip When I tried to run any utility in bin\, I got
a "System Error" message box saying:
"the program can't start because MSVCR80.dll is missing from your
computer. Try reinstalling the program to fix this problem." error.
I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\ from a
working application, say MATLAB or NVIDIA driver folder. I presume
these Dll's are compatible with Win7 64bit since all these
applications work fine.
When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
Library" box saying:
"Runtime Error!
Program: C:\HDF5\bin\h5dump.exe
R6034
An application has made an attempt tot load the C runtime library
incorrectly.
Please contact the application's support team for more information."
after click "OK", I encountered yet another box "h5dump.exe -
Application Error" saying:
"The application was unable to start correctly (0xc0000142). Click OK
to close the application."

I tried to recompile HDF5 from the source code using
http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
I used MSVC2008 to create the default x64 configuration files from the
included Win32 ones. Compilation went smoothly. The newly created
binary files behave exactly the same as the your binary release.

Would you please help? Thanks a lot.

Best,
xunlei

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

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

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

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

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

I don't know if this solves people's linking problems but I thought I'd
weigh in with what I know about Windows C runtime (CRT) linking.

From what I understand, it boils down to this:

Every library and executable in your application should use the same
instance of the C runtime library.

The reason for this is that separate dlls have a separate internal state and
thus different ideas about things like valid file handles and allocated
memory. For example, if you malloc() some memory in a library linked to
msvcr80.dll and then try to realloc() or free() it in a program linked to
msvcr90.dll, you will have problems since msvcr90 doesn't know about the
first allocation's internal memory handles (writing to memory allocated
using a different C runtime should work fine, though, since the underlying
internal memory handles are not being manipulated). Debug libraries (e.g.
msvcr80d.dll) are also different in this respect since they are different
dlls so using a library compiled in release mode with an executable compiled
in debug mode can cause problems. Keep in mind that many things will appear
to work just fine when you mix C runtime libraries - it's just when you pass
CRT resources around that you'll run into issues. It's also important to
remember that statically linking to a C runtime gives you a private version
of that runtime that is NOT shared with any other components. For this
reason, it is recommended that you only statically link against a library
when you are building an executable and NOT when you are building a library.

You can check your dependencies with dumpbin if you have Visual Studio
installed. Fire up a Visual Studio command prompt and use dumpbin /imports
<path to library or program> to see which dynamic libraries a particular
program or dll requires. The existing 32-bit HDF binaries show a dependency
on msvcr80.dll (Visual C++ 8.0 / Visual Studio 2005), the VS2005 version of
zlib is also linked to msvcr80.dll and szip does not require any C library
functions (it's either just linked to kernel32 and uses Windows functions or
it incorrectly statically links to the CRT - I'll have to check that out).
The tools are an odd case - they are statically linked to HDF5 and have a
private version of the C runtime that is separate from, say, msvcr80.dll but
are also dynamically linked to zlib which is, in turn, linked to
msvcr80.dll. This means that zlib code used by the tools and the rest of
the tool code will have different CRT states.

So this is (pretty much) all well and good as long as you are using Visual
Studio 2005. Problems can arise, however, when you try to use Visual Studio
2008 to build an application that links against VS2005 versions of HDF5.
VS2008 will link your application against msvcr90.dll and this can cause the
issues described above. Unfortunately, we do not distribute VS2008 binaries
on the HDF5 downloads page but I'm sure this will be rectified soon.

We're looking into the library issues here and we'll have more information
in the future, but I think a short term roadmap for us could be:

1) We need to offer Visual Studio 2008 HDF5 binaries that are linked against
msvcr90.dll.

2) Our binaries (HDF5, szip, zlib) need to include debug libraries so that
users can properly link when creating debug builds.

3) We need to educate our Windows users about these issues, probably via a
README document in the distribution.

4) Our static tools should be 100% statically linked.

Also, in general, you should use the official Windows CRT installers to
install the required C runtime, instead of just copying dlls around. You
can find the proper installers on Microsoft's website (links which will
surely go stale soon provided below). I have no idea why the CRTs aren't
just considered a normal part of a Windows installation and maintained
accordingly. You'd think that would make everyone's life easier.

Visual Studio 2005 SP1
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647

Visual Studio 2008 SP1
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fbee1648-7106-44a7-9649-6d9f6d58056e

I hope that helps.

Dana Robinson
Bioinformatics Software Engineer
The HDF Group

I was able to use the define and rebuild the hdf5 and szip and zlib dlls to not depend on mscvr80.dll. Most everything works, except a few tests are failing. I guess I got a bit of work to do. Once I have all the tests passing I will regenerate the binaries and make them available. Hopefully, tomorrow afternoon. I will probably ask a couple of folks that are having problems to please email me:
                 Allen Byrne - byrn@hdfgroup.org
if they are willing to test a pre-release version (to verify it works for them) before I make a complete version available on our web site.

Thanks for everyone's help,
   Allen

···

Did that URL and subsequent build work around the issues that you were
having?
___________________________________________________________
Mike Jackson www.bluequartz.net

On Mar 16, 2010, at 5:03 PM, Dr. X wrote:

> Hi Michael,
> Would you please post the lastest Git URL? thanks a lot.
> x
>
> On 3/16/2010 4:23 PM, Michael Jackson wrote:
>> No they don't. I release Applications all the time with the C/C++
>> Runtimes next to the executable. There is some build setting in
>> visual studio that allows this.
>>
>> http://www.nuonsoft.com/blog/2008/10/29/binding-to-the-most-recent-visual-studio-libraries/
>>
>> If you read nothing but the LAST line of the blog the blogger
>> explains why binding to multiple C/C++ runtimes is a "Bad idea" and
>> simply will not work. Sounds like something like this is going on
>> here.
>>
>> The original poster may want to try build HDF5 with the "CMake"
>> version on Gitorious although that code base is only HDF5 V1.8.4
>> and does NOT have the "patch-1" additions/corrections to the codes.
>>
>> ___________________________________________________________
>> Mike Jackson www.bluequartz.net
>> Principal Software Engineer mike.jackson@bluequartz.net
>> BlueQuartz Software Dayton, Ohio
>>
>>
>> On Mar 16, 2010, at 3:54 PM, Lewandowski, George wrote:
>>
>>> This sounds like it might be a problem with side-by-side
>>> assemblies. The proper C runtimes must be installed on the client
>>> machine, the loader will not look for them in the same directory
>>> as the executable. See this MSDN article:
>>>
>>> http://msdn.microsoft.com/en-us/library/aa376307(VS.85).aspx
>>>
>>> If this is the problem, it can be fixed by running
>>> vcredist_x86.exe to install the side-by-side assemblies on the
>>> target machine. You have to get the correct redistributable for
>>> the version of VC used to build the program. The redistributable
>>> for VS2005 SP1 is here:
>>>
>>> http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en
>>>
>>> George Lewandowski
>>> (314)777-7890
>>> Mail Code S270-2204
>>> Building 270-E Level 2E Room 20E
>>> P-8A
>>>
>>> -----Original Message-----
>>> From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org
>>> ] On Behalf Of Allen D Byrne
>>> Sent: Tuesday, March 16, 2010 2:46 PM
>>> To: HDF Users Discussion List
>>> Subject: Re: [Hdf-forum] HDF5-1.8.4 patch1 on Windows7 64bit
>>>
>>> xunlei,
>>>
>>> This is the second report of this. I've just not been able to
>>> locate why this is happening. I haven't altered the project files
>>> other then adding or deleting to the list of files. Any help on
>>> finding the source of the problem would be greatly appreciated.
>>>
>>> Allen
>>>
>>>> Hi,
>>>>
>>>> I have been trying to use 5-1.8.4 patch1 on my win7 64bit
>>>> machine. I
>>>> first tried the pre-compiled version from
>>>> http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.4-patch1
>>>> -64bit-vs2005-ivf91.zip When I tried to run any utility in bin\,
>>>> I got
>>>> a "System Error" message box saying:
>>>> "the program can't start because MSVCR80.dll is missing from your
>>>> computer. Try reinstalling the program to fix this problem." error.
>>>> I then copied msvcr80.dll, msvcp80.dll, msvcm80.dll into bin\
>>>> from a
>>>> working application, say MATLAB or NVIDIA driver folder. I presume
>>>> these Dll's are compatible with Win7 64bit since all these
>>>> applications work fine.
>>>> When I run say h5dump.exe, I got a "Microsoft Visual C++ Runtime
>>>> Library" box saying:
>>>> "Runtime Error!
>>>> Program: C:\HDF5\bin\h5dump.exe
>>>> R6034
>>>> An application has made an attempt tot load the C runtime library
>>>> incorrectly.
>>>> Please contact the application's support team for more
>>>> information."
>>>> after click "OK", I encountered yet another box "h5dump.exe -
>>>> Application Error" saying:
>>>> "The application was unable to start correctly (0xc0000142).
>>>> Click OK
>>>> to close the application."
>>>>
>>>> I tried to recompile HDF5 from the source code using
>>>> http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.4-patch1.tar.gz
>>>> I used MSVC2008 to create the default x64 configuration files
>>>> from the
>>>> included Win32 ones. Compilation went smoothly. The newly created
>>>> binary files behave exactly the same as the your binary release.
>>>>
>>>> Would you please help? Thanks a lot.
>>>>
>>>> Best,
>>>> xunlei
>>>>
>>>> _______________________________________________
>>>> Hdf-forum is for HDF software users discussion.
>>>> Hdf-forum@hdfgroup.org
>>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>>>
>>>
>>> _______________________________________________
>>> Hdf-forum is for HDF software users discussion.
>>> Hdf-forum@hdfgroup.org
>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>>
>>> _______________________________________________
>>> Hdf-forum is for HDF software users discussion.
>>> Hdf-forum@hdfgroup.org
>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> Hdf-forum@hdfgroup.org
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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