FIX: EOF and BACKSPACE Cause GP Fault When the Unit Isn't OpenLast reviewed: September 16, 1997Article ID: Q106729 |
1.00 1.00a | 1.00
MS-DOS | WINDOWS NTkbtool kbfixlist The information in this article applies to:
SYMPTOMSPassing an unopened unit number to the EOF intrinsic function or the BACKSPACE command generates the run-time error:
FORTRAN PowerStation for MS-DOS
DOSXMSF : fatal error DX1020: unhandled exception: General protection fault; FORTRAN PowerStation 32 for Windows NT
Application Error The instruction at "0x0001316e" referenced memory at 0x00000000". The memory could not be "read". CAUSEThe following run-time error should be produced:
run-time error F6420: EOF() - unknown unit number RESOLUTIONOnly use the EOF function and BACKSPACE command on units that are currently open.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was fixed in FORTRAN PowerStation, version 4.0.
MORE INFORMATIONThe following sample code generates a DX1020 error (GPF) when run:
Sample CodeC Compile options: None
logical l open(2,file='test.out') l = EOF(1) end |
Additional reference words: 1.00 4.0 gpf gp-fault
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |