TempFreeMem
To find out the total amount of memory available for temporary allocation, use the TempFreeMem function.
FUNCTION TempFreeMem: LongInt;
DESCRIPTION
The TempFreeMem function returns the total amount of free temporary memory that you could allocate by calling TempNewHandle. The returned value is the total number of free bytes. Because these bytes might be dispersed throughout memory, it is ordinarily not possible to allocate a single relocatable block of that size.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for TempFreeMem are
| Trap macro | Selector |
| _OSDispatch | $0018 |
SPECIAL CONSIDERATIONS
Even though TempFreeMem does not move or purge memory, you should not call it at interrupt time.