Important: The information in this document is obsolete and should not be used for new development.
TempFreeMem
To find out the total amount of memory available for temporary allocation, use theTempFreeMemfunction.
FUNCTION TempFreeMem: LongInt;DESCRIPTION
TheTempFreeMemfunction returns the total amount of free temporary memory that you could allocate by callingTempNewHandle. 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 forTempFreeMemare
Trap macro Selector _OSDispatch $0018 SPECIAL CONSIDERATIONS
Even thoughTempFreeMemdoes not move or purge memory, you should not call it at interrupt time.