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

Runtime error 38

DavidWhite
高評価コントリビューター II
1,570件の閲覧回数

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 件の賞賛
3 返答(返信)
jimdempseyatthecove
名誉コントリビューター III
1,570件の閲覧回数

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


Steven_L_Intel1
従業員
1,570件の閲覧回数
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.
DavidWhite
高評価コントリビューター II
1,570件の閲覧回数
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
返信