[fpc-devel] Possible memory leak in cthread.

Graeme Geldenhuys graemeg at opensoft.homeip.net
Wed Aug 5 14:05:10 CEST 2009


Michael Van Canneyt wrote:
> 
> gru: >fpc -glh testh.pp
> gru: >./testh
> Heap dump by heaptrc unit
> 4 memory blocks allocated : 1023/1040
> 4 memory blocks freed     : 1023/1040
> 0 unfreed memory blocks : 0
> True heap size : 360448
> True free heap : 360448


Something different. Why does yours allocate so much more memory? 54 vs 
1023?

$ ./project1
Heap dump by heaptrc unit
4 memory blocks allocated : 54/64
4 memory blocks freed     : 54/64
0 unfreed memory blocks : 0
True heap size : 65536
True free heap : 65536



Regards,
   - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list