FIX: QuickWin Fails to Display $DEBUG Line Number s

Last reviewed: September 18, 1997
Article ID: Q112007
5.10 | 1.00 MS-DOS | WINDOWS kbtool kbfixlist

The information in this article applies to:

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

SYMPTOMS

Microsoft FORTRAN QuickWin applications compiled with extended error handling ($DEBUG or -4Yb) may fail to output the line number where a run- time error has occurred.

RESOLUTION

Microsoft FORTRAN PowerStation 32 applications built with /4Yb or $DEBUG will emit traceback information upon a DEBUG exception allowing you to see what functions were on the call stack at the time of the error. Another technique for catching exceptions can be enabled by setting an exception trap. For more information on trapping exceptions please refer to the online help for the Visual Workbench (from the "Debugging Your Application" option select "Debug exceptions"). The $DEBUG and exception trapping have different but overlapping scopes. With FORTRAN 5.1, use CodeView for Windows (CVW.EXE) to trace through the program and find where the run-time error occurs.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FORTRAN PowerStation 32, version 4.0.

MORE INFORMATION

The following program will not display the line number of the "divide by zero" error under Windows NT.

Sample Code

c Compile options needed: -MW -4Yb c

      write(*,*) 'enter a 0'
      read(*,*) x
      y=1
      y=y/x
      write(*,*) y
      end


Additional reference words: 5.10 1.00
KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: FL32Iss
Keywords : FL32Iss kbbuglist kbfixlist kbtool
Version : 5.10 | 1.00
Platform : MS-DOS WINDOWS
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.