PRB: Visual Workbench Cannot Debug Windows P-Code Applications

Last reviewed: July 22, 1997
Article ID: Q116324
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

Using the Visual C++ integrated debugger to debug a Windows-based application compiled with the /Oq compiler option (to generate P-code) causes the following error message to be returned:

   'C:\MSVC\SAMPLES\GENERIC\GENERIC.EXE' is not
    a valid executable file.

The same application compiled without the /Oq option does not generate the error message during debugging.

RESOLUTION

This is by design. P-code applications can only be debugged in the CodeView debugging environment.

NOTE: Because CodeView does not run under Windows NT, P-code applications must be debugged under 16-bit Windows.


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.