On 15/08/2011 15:24, Martin wrote: > 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)^ on 32 bit: make sure you use dwarf, and gdb7.2