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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal