Microsoft KB Archive/44240

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:56, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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 "Fast Load and SAVE" or "Text" 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 "QB A" (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