Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Legacy Fortran VF9 Shared file access with c# .NET 2003 Problem

Chris_G_1
Beginner
556 Views
I have some legacy fortran apps (VF9.0) executed by a c# graphical front end (.NET 2003). The problem is shared file access. The fortran opens a file for output and keeps the file unit open while it executes, closing and opening(for append) the unit after a write to flush the write buffer. The c# program needs to monitor the output file and read in any new data to display while the fortran code is executing. I cannot get the c# streamreader to open the file for read while the fortran code is running, as it generates a System.IO.IOException because the file is in use by another process.

I cannot rewrite the fortran code, as it must still be maintained on Unix systems. I have tried the ifort /fpscomp:general compile option, but this makes no difference in the errors generated. The fortran code is being compiled from the command line.

Suggestions, please?


Thanks,
Chris
0 Kudos
0 Replies
Reply