- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page