LONG Integer Parameter Passed to SUB Fails after Assignment (37305)
This article was previously published under Q37305
SYMPTOMS
A problem can occur in an .EXE program when you pass a LONG integer
parameter to a subprogram and then assign that parameter to a local
short integer. The long integer parameter becomes corrupted; the
program should have only changed the local short integer. This problem
does not occur inside the QuickBasic QB.EXE environment.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions
4.00, 4.00b, and 4.50 and Microsoft Basic Compiler Versions 6.00 and
6.00b (buglist6.00, buglist6.00b) for MS-DOS and MS OS/2. This problem
was corrected in Microsoft Basic Compiler Version 7.00 (fixlist7.00).
This problem does not occur when the program is compiled with the
debug option (BC /D). To work around the problem, compile with the
debug option.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB37305 |
|