CodeView Does Not Detect M61xx Math Errors

Last reviewed: July 17, 1997
Article ID: Q72249
2.20 3.00 3.11 3.14 4.00 4.01 4.05 4.10 | 2.20 3.00 3.11 3.12 3.50
MS-DOS                                  | OS/2
kbtool

The information in this article applies to:

  • Microsoft CodeView for MS-DOS, versions 2.2, 3.0, 3.11, 3.14, 4.0, 4.01, 4.05, and 4.1
  • Microsoft CodeView for OS/2, versions 2.2, 3.0, 3.11, 3.12, and 3.5

An attempt to use CodeView to determine which source code statement causes a "M61xx" math error fails because CodeView is not designed to detect the C run-time library called an application's error-handling function. CodeView does not differentiate an error-handling function from others in the application.

If you run the program in the CodeView debugger, the "M61xx" error may occur, but CodeView does not halt execution at that point. Instead, CodeView displays either the "Program terminated normally" or "Thread terminated normally" message, changes the display to assembly language mode, and displays the C run-time library termination code. The Calls menu does not provide any indication of where the error occurred. CodeView for Windows displays an "Application Error" message and does not display any source code.

Because the error-handling function calls the operating system to terminate the process, CodeView detects a normal application termination and acts accordingly: displaying a termination message and displaying the C run-time library termination code in assembly language mode.

To debug math errors with CodeView, set breakpoints at strategic locations before you run the application or animate the program at key points to see each line before it executes.

Unlike CodeView, the QuickC integrated debugger places the cursor on the line that causes the math error if you select Animate from the Run menu.


Additional reference words: kbinf 2.20 3.00 3.50 4.00 4.10 M6101 M6102
M6103
M6104 M6105 M6106 M6107 M6108 M6110 M6111 M6112
KBCategory: kbtool
KBSubcategory: CvwIss
Keywords : kb16bitonly


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: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.