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.

run time error 38

vanhorbl
Beginner
624 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
624 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