| PRB: CV2206 WARNING: Corrupt Debug OMF Detected in Object...Last reviewed: January 9, 1995Article ID: Q64438 | 
| The information in this article applies to: 
 
 SYMPTOMSWhen loading a Microsoft Macro Assembler (MASM) 5.1 program into CodeView version 3.0, the following warning is received: 
 CV2206 WARNING: Corrupt debug OMF detected in object, discarding source line information CAUSEThe warning is caused because the program was written with full segment declarations and the CODE segment was not declared class 'code'. RESOLUTIONThe problem does not appear when using the simplified segment definitions or when the full segment definitions include class 'code'. MORE INFORMATIONThe following code causes this problem: 
 Sample Code:; Assemble options needed: /Zi 
 stack   SEGMENT stack para 'stack'
        DB      100 dup (?)
stack   ENDS
text    SEGMENT
        ASSUME   cs:text
main    PROC
        RET
main    ENDP
text    ENDS
        END main
 | 
| Additional reference words: 5.10 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use. |