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

run time error 38

vanhorbl
Beginner
602 Views
Occasionally I am receiving an application error: "forrtl: severe (38): error during write, unit -1, file conout$". This occurs when issuing a print statement in the application, and then the application shutsdown. Is there a way to trap this error and allow the program to continue? I would prefer not to have to use the write command.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
602 Views
I'm going to guess that your code is not running from a console application, but perhaps is in a DLL called from VB or something like that. In this case, there is no console and you'll get an error if you try to write to it.

If this is not the case, please supply more detail - does the code successfully PRINT at other places?

Steve
0 Kudos
Reply