CV /E Avoids Windows 3.0 386 Enhanced-Mode Protection Error

ID Number: Q65934

2.35 3.00 3.10 3.11 3.14

MS-DOS

Summary:

When you start Microsoft CodeView under Windows 3.0 in a 386

enhanced-mode DOS box, the following error message is displayed:

You have attempted to run a protected-mode application under 386

enhanced mode. To run the application, exit and run Windows using

either the WIN /s or the WIN /r command.

However, using WIN /s or /r is unnecessary. To avoid the error

message, start CodeView with the /E option, as follows, to tell

CodeView that expanded memory is available:

CV /E

This information applies to Microsoft CodeView versions 2.35, 3.0,

3.1, 3.11, and 3.14 for MS-DOS.

More Information:

After the error message is generated, if you return to the DOS box and

wait a few seconds, CodeView may start up. To avoid the error message,

start CodeView as follows with the expanded memory (/E) switch (where

<filename.exe> is the name of the program you want to debug):

CV /E <filename.exe>

To increase the size of programs that can be loaded into CodeView in

conjunction with the /E switch, you can create a PIF file for CodeView

and specify -1 for the expanded memory KB Limit, which instructs

Windows to give the program all the EMS that it needs.

CodeView will run without the above error message in a Windows 3.0 DOS

box in standard mode (WIN /S).

For more information, query on the following words:

memory and requirements and real-mode and codeview and cv.exe

Additional reference words: 3.00 3.10