[fpc-pascal] Heaptrace and generics
bartek
bbartek at gmx.net
Fri Nov 9 17:16:28 CET 2007
Hi,
I am playing with generics around. I have implemented two simple Lists. A
array based TList and a double linked TLinkedList. I have also written a test
program to test these.
Here comes the interesting part. The test program runs flawlessy, but compiled
with -gh for heaptrace or -gv for valgrind, the test program crashes always
at a certain point.
I thought that it was possible that I did some horrendous things with my
memory, but running "valgrind --tool=memcheck" on a clean (read no -gh
or -gv) executable results in absolutely no problems reported by valgrind.
Could be FPC at fault? Both files are attached, "DataContainers.pp" being the
two lists and "DataContainers_Test.pp" the test program.
FPC 2.2.0 on Linux 2.6.23
valgrind-3.2.3
thanks in advance
bartek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataContainers.pp
Type: text/x-pascal
Size: 6055 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20071109/210bbcdd/attachment.p>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataContainers_Test.pp
Type: text/x-pascal
Size: 2238 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20071109/210bbcdd/attachment-0001.p>
More information about the fpc-pascal
mailing list