Switching Out of PM Application Hangs System under Codeview

ID Number: Q44418

2.20 2.30 2.35 3.00 3.10 3.11 3.12 3.50

OS/2

Question:

I am using CodeView to debug my Presentation Manager (PM) application.

Why does my machine sometimes hang when I use CTRL+ESC to switch to

the OS/2 program selector?

Response:

Presentation Manager applications require the use of the Presentation

Manager shell. To debug PM applications, CodeView must put hooks into

the Presentation Manager before the PM application is executed. This

process works properly while inside CodeView, but if you try to switch

back to the program selector, PM is in an unknown execution state.

Therefore, to switch out of CodeView while debugging a PM application,

you must first restart or end the program inside CodeView. This tells

CodeView to restore the Presentation Manager to its original

condition.