CLOSE Doesn't Release Far Heap Used by First OPEN "COM" Buffer (68164)
This article was previously published under Q68164
SUMMARY
When you use the OPEN "COMn:" statement, the far heap memory allocated
for the communications receive and transmit buffers is not deallocated
when the file is closed. However, this communications memory area
allocated in the far heap is reused if the COM port is reopened. [Far
heap memory usage is indicated by the FRE(-1) function.]
Note that the file's memory overhead portion consumed in DGROUP (the
default data segment) is completely released by the CLOSE statement.
[DGROUP memory is reported by the FRE("") function in QuickBasic 4.x
and in Basic Compiler 6.00/6.00b, but reported by the STACK function
in Basic PDS 7.00/7.10.]
This information applies to Microsoft QuickBasic versions 4.00, 4.00b,
and 4.50; to Microsoft Basic Compiler versions 6.00 and 6.00b for
MS-DOS; and to Microsoft Basic Professional Development System (PDS)
versions 7.00 and 7.10 for MS-DOS.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB68164 |
|