- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wonder if it is possible to obtain the texts of the IVF runtime error messages calling an IVF routine. For example if the runtime error 41 occurs, I'd like to have a routine which returns the message "Insufficient virtual memory".
CALL IVFRuntimeError( iRTErrNo, cRTErrMsg )
INTEGER, INTENT(IN) :: iRTErrNo
CHARACTER(*), INTENT(OUT) :: cRTErrMsg
I have seen that there is a routine available named GERROR (string) but this returns the message of the last error detected and my impression that this doesn't work properly sometimes. For example, at present I have a problem when reading from a file into an allocated array. GERROR (string) returns "end-of-file during read, unit 7702", but in the debugger I see RT error 41 which is the one mentioned above.
Greetings
Jrg Kuthe
www.qtsoftware.de
CALL IVFRuntimeError( iRTErrNo, cRTErrMsg )
INTEGER, INTENT(IN) :: iRTErrNo
CHARACTER(*), INTENT(OUT) :: cRTErrMsg
I have seen that there is a routine available named GERROR (string) but this returns the message of the last error detected and my impression that this doesn't work properly sometimes. For example, at present I have a problem when reading from a file into an allocated array. GERROR (string) returns "end-of-file during read, unit 7702", but in the debugger I see RT error 41 which is the one mentioned above.
Greetings
Jrg Kuthe
www.qtsoftware.de
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In 11.0, for which you can get a beta version (see sticky thread above), we support the Fortran 2003 IOMSG= keyword in I/O statements. This provides the text of an error message, just as you'd like.

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