LowMemory (function) (OMemory unit)
Returns True if a memory allocation has eaten into the safety pool at the end of the heap.
function LowMemory: Boolean;
The LowMemory function returns True if a memory allocation has diminished the safety pool at the end of the heap.
The size of the safety pool is determined by the SafetyPoolSize variable. LowMemory is checked automatically by TApplication.MakeWindow and TApplication.ExecDialog, which should be used for creating window elements. Major consumers of memory (such as large, complex dialog boxes) should check LowMemory for themselves periodically to ensure that they do not exceed the available space.