> On 15/08/2011 15:14, Ludo Brands wrote: > > The debugger in lazarus didn't allow me to inspect the > refcount of the > > string though and crashed on me. > Afaik: > > (^longint(str)-2)^ > >
I tried to do something similar but that is where gdb crashed on me... In the mean time I found where the refcount increases: DoOpenUnknownFile ->CodeToolBoss.GetSourceType ->FCurCodeTool.GetSourceName ->TPascalReaderTool.BuildTree <- this where the refcount increases to 2 BuildTree is a complex piece of code and I'll need a good night of rest before attacking this. BeginParsing(Range); increments the refcount but that is as far as I got. Perhaps the author of the code could shed some light? Ludo -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus