FIX: System Hang with /Oe Option and Switch StatementsLast reviewed: September 18, 1997Article ID: Q114073 |
1.00
WINDOWS
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSWhen compiling a source module, the C/C++ compiler may cause the system to hang and not respond if all of the following conditions exist:
RESOLUTIONTo work around the problem, change the switch statement so the switch expression does not contain a function call. Alternatively, avoid using /Oe when compiling the module, or use the #pragma optimize() directive to disable /Oe for the function with the switch statement. For example, place the following statement before the function containing the switch statement:
#pragma optimize( "e", off ) // Disables /Oeand the following statement after the function:
#pragma optimize( "", on ) // Re-enables /Oe STATUSMicrosoft has confirmed this to be a problem in the C/C++ compiler for MS-DOS version 8.0. This problem was corrected in the C/C++ compiler for MS-DOS version 8.0c, included with Visual C++ for Windows, version 1.5.
|
Additional reference words: 1.00 8.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |