4.2.2 Differences Between CVW and CodeView for MS-DOS

With CVW, as with CV for MS-DOS, you can display and modify any variable, section of addressable memory, or processor register; monitor the path of execution; and precisely control where execution pauses. However, CV for MS-DOS and CVW differ in the following ways:

CV feature CVW feature

Starts from the MS-DOS prompt. Starts from within Windows.
Repeats a search when you press ALT+/. Repeats a search when you press CTRL+R.
Returns to MS-DOS upon termination. Returns to Windows under normal termination conditions. An abnormal termination of CVW may cause the Windows session to be terminated.

In addition to these differences, CVW includes the following unique features:

The ability to track your application's segments and data as Windows moves their locations in memory. As items are moved, the debugger readjusts its symbol table accordingly.

The (lh) and (gh) type casts, which you can use to dereference local and global handles of a memory object into near and far pointer addresses. For a more detailed description, see Section 4.9.6.3, “Dereferencing Memory Handles.”

Windows-specific commands. CVW has the following six new commands:

Command Action

wdl (Windows Display Local Heap) Displays a list of the memory objects in the local heap. For more information, see Section 4.9.6.1, “Displaying Local and Global Memory Objects.”
wdg (Windows Display Global Heap) Displays a list of the memory objects in the global heap. For more information, see Section 4.9.6.1, “Displaying Local and Global Memory Objects.”
wdm (Windows Display Modules) Displays a list of the application and library modules available to Windows. For more information, see Section 4.9.8, “Displaying Windows Modules.”
wwm (Windows Watch Message) Displays a Windows message or class of messages in the CVW Command window. For more information, see Section 4.9.5, “Tracing Windows Messages.”
wbm (Windows Breakpoint Message) Sets a breakpoint on a Windows message or class of messages. For more information, see Section 4.11.1.3, “Setting Breakpoints on Windows Messages.”
wka (Windows Kill Application) Terminates the task that is running. You should use this command with caution. For more information, see Section 4.11.5, “Interrupting Your Application.”