BUG: Visual Workbench Can't Set Breakpoint on Long Double

Last reviewed: July 22, 1997
Article ID: Q114591
1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

  • The Visual Workbench Integrated Debugger included with: Microsoft Visual C++ for Windows, version 1.5

SYMPTOMS

The Visual Workbench will generate an error when attempting to set a breakpoint at a location when an expression is true, and the expression involves a long double variable. This error only occurs when using the Visual Workbench under Windows NT.

STATUS

Microsoft has confirmed this to be a problem with the Visual Workbench, version 1.5. We are researching the problem and will post new information here in the Microsoft Knowledge Base as soon as it becomes available.

MORE INFORMATION

Use the following steps to reproduce the problem:

  1. Start the Visual Workbench.

  2. Compile the Sample Code below.

  3. Set a breakpoint on line 3 where the variable is initialized.

  4. Hit F5 to run the program.

  5. When the breakpoint is hit, select Debug/Breakpoints.

  6. Select "Break on Location if Expression is True". For the location, use line 4. The expression is "Bld == 19" for the code below.

  7. Select Add. At this point, a message box with the error:

    "Floating Point Error : Invalid"

    will appear.

    Visual C++ may be terminated leaving the application running. Attempts to close the application will result in the error, "The program is stopped in the debugger."

  • The application can be terminated by invoking the Task List <Ctrl-Esc>, highlighting the task and selecting the End Task button.

    Sample Code

    /* Compile options needed: /Zi /Mq
    */
    
    void main()              // line 1
    {                        // line 2
      long double Bld = 19;  // line 3
      Bld = 20;              // line 4
    }
    
    

  • Additional reference words: 1.50
    KBCategory: kbtool kbbuglist
    KBSubcategory: WBDebug
    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 22, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.