Thanks Ido http://ik.homelinux.org/
On Sun, Nov 8, 2009 at 3:59 PM, Jonas Maebe <jonas.ma...@elis.ugent.be>wrote: > ik wrote on Sun, 08 Nov 2009: > > > Hello all, >> I'm trying to figure out valgrind's log about a program I wrote in Pascal >> using FPC. >> >> I have a lot of the following messages:\ >> ==30348== Mismatched free() / delete / delete [] >> ==30348== at 0x4C21A18: free (in >> /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) >> > [snip] > > ==30348== Address 0xd2892b0 is 0 bytes inside a block of size 32 alloc'd >> ==30348== at 0x4C2261C: operator new(unsigned long) (in >> /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) >> > [snip] > > Not even one report about my own code, buy all about shard libraries. >> Does anyone know what it means exactly ? >> > > 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)). > > There is probably nothing you can do about it in your code, since it's all > inside the C++ library. > > > Jonas > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal