CodeView Crashes in DOS on "Drive Not Ready" Error

ID Number: Q64026

3.00 3.10 3.11 3.14

MS-DOS

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

Summary:

CodeView versions 3.0, 3.1, 3.11, and 3.14 may hang after encountering

a "Drive Not Ready" error. This error may occur if a file is opened on

drive A and a disk is not in the drive.

More Information:

To reproduce this problem, compile the following sample program for

CodeView debugging (cl /Zi /Od):

main () {

FILE *fp;

fp = fopen("a:\readme.doc","r");

}

If you run this program in CodeView version 3.0, 3.1, 3.11, or 3.14

without a disk in drive A and press F5 to run the program, the

following error will appear:

Not ready reading drive A

Abort, Retry, Fail?

Regardless of what is typed, the machine will hang and you must do a

cold reboot to remedy the crash.

Note: CodeView versions 2.2, 2.3, and 2.35 do not hang the machine if

the above steps are executed. The fopen() just returns a NULL. The

error is also handled correctly under OS/2 with protected-mode

CodeView (CVP).

Microsoft has confirmed this to be a problem in CodeView versions 3.0,

3.1, 3.11, and 3.14. We are researching this problem and will post new

information here as it becomes available.

Additional reference words: 3.00 3.10