Microsoft KB Archive/66702

= PRB: CV2206 Warning: Corrupt OMF Detected in =

Article ID: 66702

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.05
 * Microsoft CodeView 3.06
 * Microsoft CodeView 3.07
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1

-



This article was previously published under Q66702



SYMPTOMS
An 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, discarding source line information



CAUSE
Code segments in the application do not have the class &quot;CODE&quot;.



RESOLUTION
Modify the source code to specify the correct segment class and rebuild the application.



MORE INFORMATION
According to page 104 of the &quot;Macro Assembler Programmer's Guide&quot; 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

_text segment para public
 * To enable CodeView debugging, add 'CODE' to the following line

begin   proc mov ah, 4ch int 21h begin   endp

_text ends end begin

Additional query words: 2.20 3.00 3.50 4.00 4.10

Keywords: kberrmsg kbbug kb16bitonly kbdebug kbprb KB66702

-

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

© Microsoft Corporation. All rights reserved.