Q49824: Debugging PM Apps with Two Monitors Does Not Require /2 Switch
Article: Q49824
Product(s): See article
Version(s): 2.20 2.30
Operating System(s): OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 17-JUL-1990
Problem:
I am using CodeView to debug my Presentation Manager (PM) program and
I am using the /2 switch to redirect the CodeView screen to a
monochrome monitor. When I press F5 to start my program, a protection
violation occurs, but it works correctly when I run it from the OS/2
command line.
Response:
The /2 switch for CodeView is not supported for Presentation Manager
application debugging. However, you may redirect the CodeView screen to
a monochrome monitor if you do the following:
1. Start a full-screen command prompt.
2. At the prompt, type the following command (this puts the prompt on
the monochrome monitor):
mode mono
Note: You must be in a 25-line screen mode before you attempt the
mode mono. If you are in a 43- or 50-line mode, the display is
corrupted.
3. At the prompt, type the following command, where "appname" is your
application's name:
cvp appname
4. After you are finished debugging, you can return the prompt to your
primary display by typing the following command:
mode co80
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.
Copyright Microsoft Corporation 1986-2002.