The old Turbo Pascal functions MemAvail and MaxAvail functions are no longer available in Free Pascal as of version 2.0. The reason for this incompatibility is below:
On modern operating systems, 4 the idea of ”Available Free Memory” is not valid for an application. The reasons are:
Therefore, programs using MemAvail and MaxAvail functions should be rewritten so they no longer use these functions, because it does not make sense anymore on modern OS’es. There are 3 possibilities:
4The DOS extender GO32V2 falls under this definition of ”modern” because it can use paged memory and run in multitasked environments