[fpc-devel] SYSUTILS UTF8String Memory Bug

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Aug 9 23:34:25 CEST 2014


On 09/08/14 20:06, mark diener wrote:
> So with the memory manager changed out, the exception now occurs in the
> GUI main thread instead of the TThread and clearly the
> fpc_ansistr_decr_ref function is failing.
>
> The lines in question in .\include\application.inc:1079 are as follows:
>
>        // call event
>        Event(Data);
>
> This Event variable is a pointer to a function with a single pointer to
> integer argument.
>
> Anybody got some ideas about this?

Your program probably contains a memory corruption bug that messes up 
the heap state. To find it, you can try enabling range and class type 
checking (-CRr) and enabling heaptrc (-gh), or using the C memory 
manager and running the program through Dr Memory (http://www.drmemory.org )


Jonas



More information about the fpc-devel mailing list