PRB: Debugger Cannot Debug DISPLAY.EXE

Last reviewed: July 22, 1997
Article ID: Q116492
1.00 1.50 WINDOWS kbtool kbprb

The information in this article applies to:

  • The Visual Workbench Integrated Debugger included with: Microsoft Visual C++ for Windows, versions 1.0 and 1.5

SYMPTOMS

Attempts to run an application called DISPLAY.EXE in the Visual Workbench debugger or CodeView causes the debugger to generate the following error message:

     DEBUG ERROR: Could not load debuggee, Windows is
                  Out of memory (1)

CAUSE

There are several "Windows reserved" filenames that cause this behavior, such as the following:

   CGA40WOA.EXE   COMM.EXE       COMMDLG.EXE    GDI.EXE
   DISPLAY.EXE    DOSAPP.EXE     FIXFONTS.EXE   FONTS.EXE
   KERNEL.EXE     KEYBOARD.EXE   MMSYSTEM.EXE   MOUSE.EXE
   PROGMAN.EXE    SHELL.EXE      USER.EXE       TIMER.EXE

It is also possible to have conflicts with files already loaded into memory by Windows. Microsoft Knowledge Base article Q86181: "Programs with Reserved Windows Filenames May Not Run" discusses this problem further.

RESOLUTION

To work around this problem, rename the target executable with a name that does not match any of the names in the list above or any program that has already been loaded into memory. To find out whether an application in memory has the same name as your application, run the Heap Walker utility. Heap Walker has the ability to sort applications by module name, making it easy to see whether another application shares the same name as yours. If so, you cannot use the debugger to debug your application.


Additional reference words: 1.00 1.50
KBCategory: kbtool kbprb
KBSubcategory: WBDebug
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.