QB.EXE May Hang if Array Is Named Twice in One COMMON Block (78894)
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 "Binding":
DIM a%(10),b%(10),c%(10)
COMMON SHARED a%(),b%(),c%(),b%()
END
This program should result in the error "Duplicate Definition".
However, in QB.EXE and QBX.EXE, it does not. The BC.EXE compiler in
both QuickBasic and Basic PDS will correctly signal the "Duplicate
Definition" 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
"Duplicate Definition" error and will not hang.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB78894 |
|