You are not logged in.
Pages: 1
Hello,
It appears that there is a bug in the TTextWriter.AddSpaced (mormot.core.text unit).
procedure TTextWriter.AddSpaced(const Text: RawUtf8; Width: PtrInt; SepChar: AnsiChar);
begin
AddSpaced(PUtf8Char(pointer(Text)), length(Text));
if SepChar <> #0 then
Add(SepChar);
end;
Internal call of the AddSpaced must have one more parameter: Width.
AddSpaced(PUtf8Char(pointer(Text)), length(Text), Width);
Otherwise a wrong overloaded method is called, which leads to infinite recursion and stack overflow.
Sergey
Offline
You are right.
Please try https://github.com/synopse/mORMot2/commit/eff71416
Online
Pages: 1