run time error 38

run time error 38

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.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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?


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today