FUNCTIONs and Subprograms Can Affect FIELDed Arrays in COMMON (29923)
This article was previously published under Q29923
SYMPTOMS
An array that is in both a FIELD and a COMMON statement can be
adversely affected if you pass it as a parameter to a FUNCTION or
subprogram procedure.
The program below has two FIELD statements that result in two arrays
pointing to the same memory location. However, after a call to a
FUNCTION that should not affect the arrays, they no longer point to
the same place in memory. Compiling with debug (BC /D) does not help.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions 4.00,
4.00b, and 4.50, in Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-
DOS and MS OS/2, and in Microsoft Basic Professional Development System
(PDS) Version 7.00 for MS-DOS and MS OS/2. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB29923 |
|