850
Appendix A: System Routines — Memory Management
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
HeapCompress
Declaration:
void
HeapCompress
(void)
Category(ies):
Memory Management
Description:
Compress the heap.
Inputs:
None
Outputs:
None
Assumptions:
None
Side Effects:
This routine is called automatically by the system whenever it is needed
and normally should not be called by applications.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: HeapAlloc, HeapAllocThrow, HeapMax , HeapAvail
Example:
/* This example is from the MEM key code. That code compresses the heap before
calling HeapAvail since heap compression may combine some blocks of memory thus
slightly changing the total amount available.
*/
DWORD TotalFree;
HeapCompress();
TotalFree = HeapAvail();