[fpc-pascal] replacement of MemAvail and MaxAvail
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri May 30 19:37:53 CEST 2014
On 30 May 2014, at 11:37, mokashe.ram wrote:
> but in promgram these functions are already used in my applcation developed
> in TP7, sonow i am migration this applcation to free pascal. how can i
> replace using free pascal?
Set the global variable ReturnNilIfGrowHeapFails to true, and in all places where you checked whether memavail/maxavail was large enough, instead allocate the memory and check whether the returned pointer is different from nil.
Jonas
More information about the fpc-pascal
mailing list