"Out of String Space," Dynamic Array of Fixed-Length Strings (27489)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
This article was previously published under Q27489 SUMMARY
When running the program below inside the QuickBasic Version 4.00,
4.00b, or 4.50 environment, an "Out of String Space" error is
generated after fewer than 70 iterations of concatenating a variable
length string onto a fixed-length string array element. However, the
FRE("") and FRE(-1) functions both return the same value all the way
through the loop. Note that the fixed-length string array element is
part of a dynamic array, which puts it in the far heap; therefore, it
normally does not use up any of the normal string space in the default
data segment.
The program below demonstrates an internal limitation of the QB.EXE
interpreter that is rarely encountered. Microsoft currently does not
plan to change this limitation.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB27489 |
---|
|