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

Error during write

babe59
Beginner
641 Views
Hello,
I'v got an error when I execute my program "Forrtl: severe (38): error during write, unit -1, file CONOUT$..."
I created a C# program (VS2005) which it call a Fortran DLL (IVF 11.1.0.51)

The DLL fortran is a industrial process model and i must just compile it to create my DLL (no modification on code).

I see http://software.intel.com/en-us/articles/cannot-write-to-window-created-with-allocconsole/ this post but i'm on 11.1.051...

Could you help me ?
DT
0 Kudos
3 Replies
Steven_L_Intel1
Employee
641 Views

Does your C# application create a console window? If not, the error is correct.
0 Kudos
babe59
Beginner
641 Views

Does your C# application create a console window? If not, the error is correct.

no it doesn' create a console windows (DLL Fotran was called by winform program). I discuss with creator's Fortran model and he delete "write (*," instruction.

thk a lot
DT
0 Kudos
GVautier
New Contributor III
641 Views
Quoting - babe59

no it doesn' create a console windows (DLL Fotran was called by winform program). I discuss with creator's Fortran model and he delete "write (*," instruction.

thk a lot
DT

A solution can be to change all write(*, to write(9999, and open file 9999 at initialization in function of needs as :
"nul" (no output)
a trace file (keep activity in, a file)
"con" (console)

0 Kudos
Reply