CV9204001: CV Halts If Quick Watch Is Invoked from Breakpoint

ID Number: Q83094

3.00 3.10 3.11 3.14

MS-DOS

buglist3.00 buglist3.10 buglist3.11 buglist3.14 fixlist4.00

Summary:

PROBLEM ID: CV9204001

SYMPTOMS

Microsoft CodeView versions 3.0, 3.1, 3.11, and 3.14 halt if a

breakpoint issues a command to display an expression using the

Quick Watch (??) command.

RESOLUTION

One workaround to this problem is to use the Display Expression (?)

command instead of the Quick Watch (??) command to view a variable

through a breakpoint's command option. To use this method, you must

have the Command window open.

STATUS

Microsoft has confirmed this to be a problem in Microsoft CodeView

versions 3.0, 3.1, 3.11, and 3.14. This problem was corrected in

CodeView version 4.0.

More Information:

Microsoft CodeView supports the ability to execute commands when a

breakpoint is reached. These commands can be specified through the Set

Breakpoint dialog box or through the BP command in the Command window.

Use the following steps to re-create this problem:

1. Compile the sample program below with CodeView information.

2. Invoke CodeView specifying the executable.

3. Type the following command in the Command window:

BP .11 ,,"??array"

This command puts a breakpoint on line 11, and puts a Quick Watch

on array when the breakpoint is reached.

4. From the Run menu, choose Reset.

5. Choose F5 to execute up to the breakpoint.

When the Quick Watch window comes up, CodeView halts.

Sample Code

-----------

/* Compile options needed: /Od /Zi

*/

#include <stdio.h>

int array[10];

int i;

void main(void)

{

for(i=0;i<10;i++)

array[i] = i;

}

Additional reference words: 3.00 3.10 3.50 3.x lock hung hang