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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Runtime error 38

DavidWhite
Valued Contributor II
980 Views

I have a DLL application which is called from Excel. I am getting an intermittent runtime error:
Forrtl: Severe(38) Error during write, unit 0, file CONOUT$.
My DLL has no print or write statements.

Any ideas what is going on here? In a previous post, Steve indicated that this error was to do with the Win32 API WriteFile

Thanks,


David

0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
980 Views

David,

You may have runtime diagnostic or error messages. e.g.

"Array temporary created..." (informational message)
"Subscript out of bounds..." (error message)
etc...

I think you should be able to open a file on CONOUT$ to overload the unit.
Run your program until it bombs out (or it may continue to run).
Examine the file for hints.

Jim


0 Kudos
Steven_L_Intel1
Employee
980 Views
Are you sure there are no print or write statements? That's the only thing I can think of that would trigger such an error. You could try adding a call to AllocConsole (a Win32 API routine) which will create a console window and you can see what gets written there.
0 Kudos
DavidWhite
Valued Contributor II
980 Views
Are you sure there are no print or write statements? That's the only thing I can think of that would trigger such an error. You could try adding a call to AllocConsole (a Win32 API routine) which will create a console window and you can see what gets written there.

Definitely no PRINT or WRITE statements - searched diligently for them.

What I missed, however, was two STOP 'xxxx' type statements! Not in code written by me, and definitely not a style I would use!

Thanks for your help.

David
0 Kudos
Reply