H5F.flush from HDF5DotNet?

Message: 3
Date: Tue, 27 Sep 2011 13:17:26 -0400
From: "Mitchell, Scott - IS" <Scott.Mitchell@itt.com>
To: HDF Users Discussion List <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] H5F.flush from HDF5DotNet?
Message-ID:
<19469B2A40216C47A41F0401B9A04F041F09B4573A@USFWA1EXMBX5.itt.net>
Content-Type: text/plain; charset="iso-8859-1"

There is an H5Fflush function, but it is currently not in HDF5DotNet. But it is pretty easy to add. Take a look at H5F.cpp. Duplicate what's done for H5F::close, but call H5Fflush instead. You'll need the function, the DllImport statement, and the declaration in the header.

Scott,

Thank you for the confirmation that I wasn't barking up the wrong
tree. As you said, it's easy to add to the wrapper. Is there a ticket
to bring back H5F.flush so that the prebuilt binaries contain it in
future versions?

Cheers,
Barry

···

Scott

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-
bounces@hdfgroup.org] On Behalf Of Barry Wark
Sent: Tuesday, September 27, 2011 11:59 AM
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] H5F.flush from HDF5DotNet?

Hi .Net folks,

Is there any way to flush an open file from HDF5DotNet (1.8.7) without
closing the file? We are using HDF5 for a scientific data acquisition
application and would like to force data to be written to disk after
each "trial" while keeping the file (and the group where the data is
placed) open. For posterity, there's a StackOverflow question about
this too (http://stackoverflow.com/questions/6153063/h5f-flush-removed-
from-hdf5dotnet-1-8-7),
so an answer there would be greatly appreciated as well.

Thank you,

Barry

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

This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.

Barry, H5F::flush will be back in the HDF5DotNet release that comes out with
1.8.8.

Best, G.

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-
bounces@hdfgroup.org] On Behalf Of Barry Wark
Sent: Friday, September 30, 2011 11:51 AM
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] H5F.flush from HDF5DotNet?

>
> Message: 3
> Date: Tue, 27 Sep 2011 13:17:26 -0400
> From: "Mitchell, Scott - IS" <Scott.Mitchell@itt.com>
> To: HDF Users Discussion List <hdf-forum@hdfgroup.org>
> Subject: Re: [Hdf-forum] H5F.flush from HDF5DotNet?
> Message-ID:
>
> <19469B2A40216C47A41F0401B9A04F041F09B4573A@USFWA1EXMBX5.itt.net>
> Content-Type: text/plain; charset="iso-8859-1"
>
> There is an H5Fflush function, but it is currently not in HDF5DotNet.
But it is pretty easy to add. Take a look at H5F.cpp. Duplicate what's
done for H5F::close, but call H5Fflush instead. You'll need the function,
the DllImport statement, and the declaration in the header.

Scott,

Thank you for the confirmation that I wasn't barking up the wrong tree. As
you said, it's easy to add to the wrapper. Is there a ticket to bring back
H5F.flush so that the prebuilt binaries contain it in future versions?

Cheers,
Barry

>
>
> Scott
>
>> -----Original Message-----
>> From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-
>> bounces@hdfgroup.org] On Behalf Of Barry Wark
>> Sent: Tuesday, September 27, 2011 11:59 AM
>> To: hdf-forum@hdfgroup.org
>> Subject: [Hdf-forum] H5F.flush from HDF5DotNet?
>>
>> Hi .Net folks,
>>
>> Is there any way to flush an open file from HDF5DotNet (1.8.7)
>> without closing the file? We are using HDF5 for a scientific data
>> acquisition application and would like to force data to be written to
>> disk after each "trial" while keeping the file (and the group where
>> the data is
>> placed) open. For posterity, there's a StackOverflow question about
>> this too
>> (http://stackoverflow.com/questions/6153063/h5f-flush-removed-
>> from-hdf5dotnet-1-8-7),
>> so an answer there would be greatly appreciated as well.
>>
>> Thank you,
>>
>> Barry
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> Hdf-forum@hdfgroup.org
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
> This e-mail and any files transmitted with it may be proprietary and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this e-mail in error please notify the
sender.
> Please note that any views or opinions presented in this e-mail are
solely those of the author and do not necessarily represent those of ITT
Corporation. The recipient should check this e-mail and any attachments
for the presence of viruses. ITT accepts no liability for any damage
caused by any virus transmitted by this e-mail.
>
>
>

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