On 24 Oct 2000, at 16:24, j.logsdon@lancaster.ac.uk wrote:
I am trying to access the available heap memory and there is an external function MemAvail - or is it an external integer?
It is a function in the 'system' unit (which is not USEd by default).
While it is clearly not a Good Thing to use this on a multi-programmed system like Linux, I am building a cross-platform program that will also be run on Windroze. I note that MemAvail and MaxAvail will probably return the same on an MS platform
Yes, it will. There is no way round it.
A very simple program like:
program testmem; function MemAvail:integer;external; begin writeln('Memory available is ',MemAvail:16); end.
responds with an undefined reference for Memavail.
What is the idiots way round this?
program testmem;
USES System; // <<---- this is the magic! begin writeln('Memory available is ',MemAvail:16); end.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Email: African_Chief@bigfoot.com Author of Chief's Installer Pro v5.23 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm