BUG: Screen Corruption Can Occur with _setvideomode()Last reviewed: July 22, 1997Article ID: Q116462 |
4.00 4.01 4.10
MS-DOS
kbtool kbcode kbbuglist
The information in this article applies to:
SYMPTOMSWhen the CodeView video mode is set to be the same as the current MS-DOS video mode, calls to _setvideomode(_DEFAULTMODE) can cause screen corruption.
RESOLUTIONTo work around the problem, start CodeView in a different mode than the one MS-DOS is using.
STATUSMicrosoft has confirmed this to be a bug with CodeView for MS-DOS. We are researching this problem and will post new information in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe sample code below demonstrates the problem. Build a debug version and follow these steps:
NOTE: Reissuing the mode command with different mode values at the MS-DOS prompt restores the screen. In step 2 above, using "CV /43 video" or "CV /25 video" (without the quotes) prevents this problem from occurring.
Sample Code
/* Compile options needed: Zi /Od */ /* VIDEO.C */ #include <graph.h> void main(void) { _setvideomode(_DEFAULTMODE); } |
Additional reference words: 4.00 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |