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

ID: Q114591

1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

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

    Last Reviewed: July 23, 1997