Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

Intermittent Problems with Win 7 x64

David_DiLaura1
New Contributor I
471 Views

We have begun to get reports from users of our building engineering design software of intermittent aborts on systems running Win 7 x64. Fortran is returning error 28 (file closing error). The identical engineering problem (that is, input conditions) runs on Win XP and Vista without fault. The identical problem if re-submitted (on the Win 7 systems) will often, though not always, run without aborting. Repeatedly attempting to run the program will often finally run without aborting. This doesn't appear to be an I-forgot-to-initialize-a-variable-problem, or anything like that.

We're using 11.1.054, letting the compiler perform heavy optimization.

Has anyone seen similar behavior?

David

0 Kudos
3 Replies
Steven_L_Intel1
Employee
471 Views
An error during CLOSE would be due to Windows returning an error on the CloseHandle call. I can't imagine anything in your code or the compiler generated code would affect this. Is the file in question on a local disk? Is it always the same file?
0 Kudos
David_DiLaura1
New Contributor I
471 Views

Steve,

Agreed, I can' t think of anything that I or compiler-generated code could do that would cause this. I've tried to see if these users have Anti-Whatever software (or some other Windows security stuff) running that might be holding onto or locking the data file that won't close, but that doesn't seem to be the case.

This is happening with different files. All are on a local disk.

David

0 Kudos
TimP
Honored Contributor III
471 Views
I see this in the ifort cmd window, when the file has been created during run of an ifort application with stdout redirected to a file. The file contents are fine, and it can be over-written without throwing an error. Makes no difference whether I open the window with "run as administrator." I've held back on passing judgment on those things which are different in Win7.
0 Kudos
Reply