[fpc-devel] StrDispose FreeMem with size
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Fri Oct 13 10:30:01 CEST 2006
    
    
  
On 13 okt 2006, at 10:05, Micha Nelissen wrote:
> Daniƫl Mantione wrote:
>>> I think no recent heap manager can free blocks partially ?
>> I think the idea is that if you want, you can write and install a  
>> heap manager that uses the size. In such case you implement freemem 
>> (pointer,size), and freemem(pointer) then results in a runtime error.
>
> I see. I do wonder how many people use their own heap manager  
> though ;-)
heaptrc checks the size parameter if one is given, and gives a run  
time error if the size does not match the size given at allocation time.
Jonas
    
    
More information about the fpc-devel
mailing list