DOCUMENT:Q64438 04-MAY-2001 [masm] TITLE :PRB: CV2206 WARNING: Corrupt Debug OMF Detected in Object... PRODUCT :Microsoft Macro Assembler PROD/VER:MS-DOS:5.1 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Macro Assembler (MASM), version 5.1 ------------------------------------------------------------------------------- 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 : Technology : kbMASMsearch kbAudDeveloper kbMASM510 Version : MS-DOS:5.1 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.