Problem Passing Array Element to SUB Compiled with No /Debug (32641)
This article was previously published under Q32641
SYMPTOMS
The code sample below runs correctly when compiled with the debug
option turned off (in either the QuickBasic environment or in an .EXE
file). The program passes an integer variable i and an array element
number i to a non-STATIC subprogram.
However, the program gives incorrect results at run time when compiled
with BC /D or with debug selected from the Make EXE File command in
the Run menu in QuickBasic.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions
4.00, 4.00b, and 4.50, and in the Microsoft Basic Compiler Versions
6.00 and 6.00b for MS-DOS and MS OS/2 (buglist6.00, buglist6.00b).
This problem has been corrected in the Microsoft Basic Compiler
Version 7.00 (fixlist7.00).
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB32641 |
|