FRE(-2) Returns Fixed Lowest Value Even After Stack Shrinks (40188)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q40188 SUMMARY
The FRE(-2) function returns in bytes the amount of unused stack space
available for the program.
However, when the stack-space allocation decreases, the value returned
by FRE(-2) stays fixed at the smallest size that was unused by the
stack up to that point of program execution. In other words, the
values successively returned by FRE(-2) never increase -- they either
decrease or stay the same.
This behavior is by design in the products listed above.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB40188 |
---|
|