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)^