On Sat, 12 Apr 2014, waldo kitty wrote:
On 4/12/2014 8:24 AM, Michael Van Canneyt wrote:
Attached is an implementation that allows you to specify:
What to do when allocating memory (zero out, randomize, nothing)
What to do when freeing memory (zero out, randomize, nothing).
very nice! thank you sir! i'm still learning FPC and all its fancy (to me
compared to TP/BP) features :)
Careful, it does not play well with the heaptrc unit.
why is that? is there a way to fix it? i do use the heaptrc unit to try to
ensure that i'm not leaving stuff behind...
It works together, no worries there, but heaptrc does it's own
'trashing' a bit: it writes some housekeeping data, so released
zeroed-out memory is not 100% zeroed-out.
The regular heap manager itself does this too, but heaptrc just a bit more...
If there is an interest in such thing, we can add it to the RTL.
as miniscule as it is compared with others', here's my vote in the positive
;)
Duly noted :)
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal