<div dir="ltr">Thanks<br>Ido<br><br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Sun, Nov 8, 2009 at 3:59 PM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ik wrote on Sun, 08 Nov 2009:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
I'm trying to figure out valgrind's log about a program I wrote in Pascal<br>
using FPC.<br>
<br>
I have a lot of the following messages:\<br>
==30348== Mismatched free() / delete / delete []<br>
==30348== at 0x4C21A18: free (in<br>
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)<br>
</blockquote></div>
[snip]<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
==30348== Address 0xd2892b0 is 0 bytes inside a block of size 32 alloc'd<br>
==30348== at 0x4C2261C: operator new(unsigned long) (in<br>
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)<br>
</blockquote></div>
[snip]<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Not even one report about my own code, buy all about shard libraries.<br>
Does anyone know what it means exactly ?<br>
</blockquote>
<br></div>
It says that this library is calling free() on a memory block that was allocated with new(). This is an error, because they should be calling delete() (it's sort of like calling freemem(x) on pointer to an object in Pascal, rather than dispose(x,done)).<br>
<br>
There is probably nothing you can do about it in your code, since it's all inside the C++ library.<br>
<br>
<br>
Jonas<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br></div>