[fpc-pascal] How to analyze a core dump?

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Jun 27 08:47:06 CEST 2007


On Wednesday 27 June 2007 07:55, Jonas Maebe wrote:
> On 27 jun 2007, at 08:13, Vinzent Hoefler wrote:
> > There also seemed to be some issues with the reference
> > counting: if I passed a local AnsiString to a thread constructor as
> > argument and left the routine then, this seemed to confuse the
> > thread throwing SIGSEGVs occasionally.
>
> Maybe the parameter was declared as const?

I think so. I always do that. ;)

> In that case, the refcount of the ansistring you pass isn't increased,

Meaning that the string will be freed once I leave the routine that 
called the constructor? That would explain it for sure.


Regards,

Vinzent.




More information about the fpc-pascal mailing list