- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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
コピーされたリンク
3 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Quoting - Steve Lionel (Intel)
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