Hi,
We have investigated this here and noticed this is a bug in TStringStream, which doesn't increment the Position property automatically when using ReadString(); . We have fixed this issue, this issue occurs in FPC 3.2.0 . We already have reported this issue but it's unclear if this fix has made it in newer FPC versions.