Microsoft KB Archive/33040

= &quot;File CODE Segments That Conflict with QuickBASIC&quot; Error =

Article ID: 33040

Article Last Modified on 11/21/2006



This article was previously published under Q33040



SUMMARY
The error message &quot;File contains CODE segments that conflict with QuickBASIC's CODE&quot; is encountered if you are using library routines in the program's resource fork with CODE resources that conflict with QuickBASIC's CODE resources.

This message often occurs when updating from the earlier BASIC compiler Version 1.00 or BASIC interpreter Version 3.00 for Macintosh. QuickBASIC's CODE resources have ID numbers 0 through 37. If the program has a LIBRARY or OpenResfile statement which opens CODE resources that have numbers between 0 and 37, this message will be generated.

This error also occurs if you mistakenly overwrite your source code at compile time by specifying a name for the compiled application that matches the name of the source code. Do not overwrite your source code with an application; otherwise, your source will be lost!



MORE INFORMATION
QuickBASIC accesses a routine by its ID number; therefore, because the program's resource fork is opened after QuickBASIC's, this causes QuickBASIC to access the wrong resources. To resolve the problem, comment out the LIBRARY statement in the BASIC program and compile with the &quot;Copy MBLCs and MBPCs&quot; switch enabled.

If you need to use older custom libraries, make sure the ID numbers for those CODE segments are greater than 100. To accomplish this, compile and run the &quot;Renumber CODEs&quot; utility on the Examples disk in the &quot;Tools&quot; folder. This message is only generated when running the program in the QuickBASIC interpreter environment.

Additional query words: MQuickB

Keywords: KB33040

-

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

© Microsoft Corporation. All rights reserved.