Since I am working with applications that are DESIGNED to work on both Linux and Windows, it is conceivable that on Windows, I am inadvertently using the non-Windows VFD for HDF5 to open the files. For example, I could inadvertently be using sec2 VFD when running on Windows. Could that be the source of the problem?
Mark On Tue, 2010-05-18 at 20:03 +0200, Dimitris Servis wrote: > Mark > > I have the same use case. Solver runs in one process and > postprocessing in another. I don't have a problem. AFAIK HDF5 does not > do some kind of locking. Do you somehow lock the file? Is it possible > that you have another open handle somewhere? If you are using > CreateFile take good care that the flags are consistent. I use my own > locking mechanism for the files to synchronize processes and threads. > I'd be happy to provide you with more info. > 2010/5/18, Mark Miller <[email protected]>: > > Hi All, > > > > I wanted to check to see if anyone has run into this case and has some > > suggestions for what to do. > > > > I have two HDF5 applications; A and B. A generates (writes) some HDF5 > > files that B reads and does some visualization of the files A produces. > > > > I'd like to be able to operate (on Windows) in such a way that I > > frequently re-run A, producing a file say 'foo.h5' which I might already > > have open in application B. All I do in application B to see the new > > contents of 'foo.h5' is to 're-open' the file. > > > > However, on Windows, the problem is that if A attempts to write to > > 'foo.h5' while B has it open, the Windows somehow prevents this with a > > 'this file is already in use by another application. Please close the > > file in other applications before attempting to modify it' error. > > > > Does anyone know if any special HDF5 or Windows incantations with which > > to open 'foo.h5' in application B such that application A will NOT hit > > this Windows error? > > > > Mark > > > > -- > > Mark C. Miller, Lawrence Livermore National Laboratory > > ================!!LLNL BUSINESS ONLY!!================ > > [email protected] urgent: [email protected] > > T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-8511 > > > > > > _______________________________________________ > > Hdf-forum is for HDF software users discussion. > > [email protected] > > http://*mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://*mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > -- Mark C. Miller, Lawrence Livermore National Laboratory ================!!LLNL BUSINESS ONLY!!================ [email protected] urgent: [email protected] T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-8511 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
