[fpc-devel] Misterious error
jonas.maebe at elis.ugent.be
Wed Dec 28 14:43:16 CET 2011
On 28 Dec 2011, at 14:25, José Mejuto wrote:
> To me it looks like the code is trying to free some strings or
> interfaces but at a point where the manager of automated types has
> been "disabled" so the declaration of a new ansistring "reconnects"
> it. Maybe it is a crazy idea but is the only one that I have now.
The most likely problem is memory corruption by your program. Compiling the program with range checking (-Cr) and dynamic class type checking (-CR) can help with finding the cause. You can try using heaptrc or Dr Memory (http://dynamorio.org/drmemory.html -- in case you use this one, adding the cmem unit to your program may give more accurate diagnostics).
More information about the fpc-devel