FIX: OutputDebugString() Without \n May GP Fault in MSVC.EXELast reviewed: September 18, 1997Article ID: Q123493 |
2.00
WINDOWS NT
kbtool kbfixlist kbfile
The information in this article applies to:
SYMPTOMSIf character strings passed as arguments to the OutputDebugString() API do not end with a newline character \n, corrupt output appears in the Integrated Debugger's Output Window. In addition, a general protection fault (GP) fault can occur in MSVC.EXE.
CAUSEThe Microsoft Foundation Classes (MFC) TRACE() macro and CDumpContext class both use the OutputDebugString() API to send information to the Integrated Debugger's Output window. Therefore, using a character string without a newline character with the MFC TRACE() macro or CDumpContext class, will also cause this problem.
RESOLUTIONAvoid passing strings that do not have an appended newline character to OutputDebugString(), TRACE(), and CDumpContext objects.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was not reproducible in Microsoft Visual C++, 32-bit Edition, version 4.0.
NOTE: Microsoft has released a patch to Visual C++ version 1.5 that will fix this problem. This patch will modify the Visual Workbench 1.50, the new one will be version 1.50.01. Download VC1501.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: 2.00 GPF buglist2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |