Microsoft KB Archive/78894

= QB.EXE May Hang if Array Is Named Twice in One COMMON Block =

Article ID: 78894

Article Last Modified on 11/21/2006



This article was previously published under Q78894



SYMPTOMS
If the following program is run in the QuickBasic 4.5 QB.EXE environment or the Microsoft Basic Professional Development System (PDS) version 7.0 QBX.EXE environment, the environment will hang during &quot;Binding&quot;: DIM a%(10),b%(10),c%(10) COMMON SHARED a%,b%,c%,b% END This program should result in the error &quot;Duplicate Definition&quot;. However, in QB.EXE and QBX.EXE, it does not. The BC.EXE compiler in both QuickBasic and Basic PDS will correctly signal the &quot;Duplicate Definition&quot; error.

This problem occurs in Microsoft QuickBasic version 4.5 (buglist4.50) for MS-DOS and in Microsoft Basic PDS version 7.0 (buglist7.00) for MS-DOS and MS OS/2. This problem was corrected in QBX.EXE in Microsoft Basic PDS version 7.1 (fixlist7.10).



MORE INFORMATION
This error only occurs for arrays; simple variables that are declared more than once in the same COMMON block will correctly cause a &quot;Duplicate Definition&quot; error and will not hang.

Additional query words: QuickBas BasicCom buglist4.50 B_BasicCom

Keywords: KB78894

-

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

© Microsoft Corporation. All rights reserved.