Microsoft KB Archive/35719

= Macintosh QuickBASIC May Load Wrong or Unexpected File =

Article ID: 35719

Article Last Modified on 11/21/2006



This article was previously published under Q35719



SUMMARY
In a certain situation, QuickBASIC may open an unexpected file.

If you sublaunch a compiled program with the &quot;Launch After Compiling&quot; option in QuickBASIC and the compiled program crashes with a system error or you restart the machine before the program quits, QuickBASIC will load the source file of the interrupted compiled program the next time you run QuickBASIC. The crashed program's source is loaded even if you double-click a different source file, or you just start QuickBASIC from the Finder. This process is surprising but harmless.

Before a compiled application is sublaunched, a file called &quot;QuickBASIC Resume&quot; is created in the System folder to remember which source file QuickBASIC was working with. When QuickBASIC is started (whether returning from a sublaunch or being launched from the finder), it looks for the &quot;QuickBASIC Resume&quot; file in the system folder. If the file is there, QuickBASIC opens the specified source file and deletes the &quot;QuickBASIC Resume&quot; file. If QuickBASIC can't find the &quot;QuickBASIC Resume&quot; file, it looks to see if a file was double-clicked in the Finder.



MORE INFORMATION
If the source file of the sublaunched, compiled, and crashed program was saved in Text format, it will load the next time you run either Microsoft QuickBASIC (b) or (d). Each version of QuickBASIC can read only it's own compressed format (binary or decimal). Thus, if you start the other version of QuickBASIC after the crash of a sublaunched program, and the file was saved as compressed, the file will not be loaded.

The &quot;QuickBASIC Resume&quot; file is created only when automatically sublaunching a newly compiled application. It is not created when you use the Sublaunch library routine in a program or the command window.

Additional query words: MQuickB

Keywords: KB35719

-

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

© Microsoft Corporation. All rights reserved.