PRB: CV2206 Warning: Corrupt OMF Detected in <filename>Last reviewed: July 17, 1997Article ID: Q66702 |
2.20 3.00 3.11 3.14 4.0x 4.10 | 2.20 3.00 3.1x 3.50 | 3.x 4.0x 4.10 4.25
MS-DOS | OS/2 | WINDOWSkbtool kbcode kberrmsg kbprb The information in this article applies to:
SYMPTOMSAn attempt to debug, in CodeView source mode, an application developed with the Microsoft Macro Assembler (MASM) fails. CodeView generate the following message:
CV2206 Warning: Corrupt debug OMF detected in <filename>, discarding source line information CAUSECode segments in the application do not have the class "CODE".
RESOLUTIONModify the source code to specify the correct segment class and rebuild the application.
MORE INFORMATIONAccording to page 104 of the "Macro Assembler Programmer's Guide" for version 5.1:
The CodeView debugger also expects code segments to have the class name 'CODE'. If you fail to assign a class type to a code segment, or if you give it a class type other than 'CODE', then labels may not be properly aligned for symbolic debugging.The following code example demonstrates this situation:
Sample Code; Assembler options needed: None ; To enable CodeView debugging, add 'CODE' to the following line _text segment para public
begin proc mov ah, 4ch int 21h begin endp_text ends end begin |
Additional reference words: 2.20 3.00 3.50 4.00 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |