FIX: /4Yb Causes DX1020 on Errors after I/O using "ERR="

Last reviewed: September 18, 1997
Article ID: Q118437
1.00 5.10 MS-DOS kbtool kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN PowerStation for MS-DOS, version 1.0

SYMPTOMS

With FORTRAN PowerStation for MS-DOS, version 1.0, if extended error handling is enabled (through the /4Yb option or the $DEBUG menta command) and if there is an "ERR=" clause in an I/O statement, errors that occur after the I/O cause a "DX1020: unhandled exception" instead of a debug traceback. This only happens for errors that would be handled by extended error handling. The I/O may be a READ on WRITE on internal or external files.

With FORTRAN, version 5.1, no error message is generated; but the application hangs at the MS-DOS prompt in Windows, version 3.1, and may cause the system to crash.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN PowerStation for MS- DOS, version 1.0. This problem was corrected in FORTRAN PowerStation for MS-DOS, version 1.0a.

MORE INFORMATION

To reproduce the problem, compile both code samples below using FORTRAN PowerStation for MS-DOS, version 1.0.

Sample Code 1

C Compile options needed: none, or use /4Yb and remove the first line

$debug

      INTEGER j,k,i(3)
      CHARACTER c*4
      c='1234'
      READ (c,'(i4)',err=10) k
10 continue
      j = 0
      i(j) = 1
      END

Sample Code 2

C Compile options needed: /4Yb

      INTEGER j
      CHARACTER c*4
      j = 2 000 000 000
      WRITE (c,'(i4)',err=10) j
10 continue
      j = j*j
      END


Additional reference words: 5.10 1.00 buglist5.10 buglist1.00 fixlist1.00a
KBCategory: kbtool kbfixlist kbbuglist kberrmsg
KBSubcategory: FL32Iss
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.