Microsoft KB Archive/44240

= Problem Editing QuickBasic 4.50 Module Without COMMON =

Article ID: 44240

Article Last Modified on 11/21/2006



This article was previously published under Q44240



SYMPTOMS
The procedure below reproduces a problem editing a file that is a secondary module that does not include the same named COMMON block as the main module. After you follow the steps below, QB.EXE hangs when trying to execute the program.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft QuickBasic Compiler Version 4.50. This problem was corrected in the QBX.EXE environment of Microsoft Basic Professional Development System (PDS) Version 7.00 for MS-DOS and MS OS/2 (fixlist7.00).

The problem occurs whether the programs are saved in the &quot;Fast Load and SAVE&quot; or &quot;Text&quot; format.



MORE INFORMATION
Refer to the following modules in the procedure below:

MODULE A
COMMON /c/ d DIM d(1)

MODULE B
(contains nothing)

The steps that reproduce the problem are as follows:


 * 1) Get into QuickBasic and create MODULE A (which contains the code above).
 * 2) Press ALT+F C to create MODULE B (which has no code in it).
 * 3) Press ALT+F V (save all) and ALT+F X to exit QB.EXE.
 * 4) Start QuickBasic again, loading MODULE A with the command &quot;QB A&quot; (this also loads B.BAS).
 * 5) Press F5 to start the program.
 * 6) Go to MODULE B with F2 and select B.BAS.
 * 7) Type anything into MODULE B and backspace over it so that nothing is in the module, as before.
 * 8) Save all the modules with ALT+F V. (Actually, any sort of save here reproduces the problem.)
 * 9) Press F5 to continue.
 * 10) Press F5 and the program hangs. [Any combination of F5, SHIFT+F5, and ALT+R R (restart) in Steps 7 and 8 reproduces this problem.]

Additional query words: QuickBas BasicCom SR# S890501-102 buglist4.50 B_BasicCom

Keywords: KB44240

-

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

© Microsoft Corporation. All rights reserved.