Microsoft KB Archive/64438

= PRB: CV2206 WARNING: Corrupt Debug OMF Detected in Object... =

Article ID: 64438

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft Macro Assembler 5.1 Standard Edition

-



This article was previously published under Q64438



SYMPTOMS
When 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



CAUSE
The warning is caused because the program was written with full segment declarations and the CODE segment was not declared class 'code'.



RESOLUTION
The problem does not appear when using the simplified segment definitions or when the full segment definitions include class 'code'.



MORE INFORMATION
The 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 query words: 5.10

Keywords: KB64438

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.