BUG: CXX0067: Error: Illegal Enum Value (103711)
The information in this article applies to:
- Microsoft CodeView for MS-DOS 4.0
- Microsoft CodeView for MS-DOS 4.01
- Microsoft CodeView for MS-DOS 4.1
- Microsoft CodeView for Windows 4.0
- Microsoft CodeView for Windows 4.01
- Microsoft CodeView for Windows 4.1
- Microsoft Visual Workbench for Windows
This article was previously published under Q103711 SYMPTOMS
When debugging a C++ program with CodeView version 4.1 or the Visual
Workbench, the following error is generated when watching an enum type
variable that is assigned a negative value:
CXX0067: Error: Illegal Enum Value
With CodeView version 4.0 or 4.01, an incorrect value is displayed.
RESOLUTION
A workaround when using the Visual Debugger or CodeView version 4.1 is
to typecast the variable as an int in the Watch window. For example,
if EnumData is an enum type variable with a negative value, set up the
watch similar to the following:
(int)EnumData
To add the typecast in the Visual Workbench, first set the watch on
the variable then modify the type value after it appears in the Watch
window.
STATUS
Microsoft has confirmed this to be a problem in Microsoft CodeView for
MS-DOS and Windows versions 4.0, 4.01, and 4.1, and in the Visual
Workbench Debugger for Windows version 1.0.
This problem does not occur in CodeView version 4.25 for Win32s.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbBug kbDebug kberrmsg kbide KB103711 |
---|
|