[fpc-pascal]Issues regarding available memory

Peter Vreman peter at freepascal.org
Fri May 16 23:45:00 CEST 2003

At 23:30 16-5-2003, you wrote:

>--- Jonas Maebe <jonas at zeus.ugent.be> wrote:
> > The heap manager is written to give a run time error 203 when you
> > ask
> > for memory and it can't be allocated. You can catch this using
> > exceptions.
>Ah. I was looking for a nil pointer from GetMem.  But you're saying
>that I never get it because the heap manager never refuses GetMem, it
>just grows the heap or, if it cannot grow the heap, throws an error?

Set the global variable: ReturnNilIfGrowHeapFail:=true and it'll return nil 
as you wanted


More information about the fpc-pascal mailing list