#1 2018-06-13 19:19:05

igors233
Member
Registered: 2012-09-10
Posts: 241

RawUTF8List loading problem

I think there's an issue or bug inside TRawUTF8List.SetTextPtr method. With certain file sizes it fails.

Here is code to reproduce it

procedure TForm2.btn3Click(Sender: TObject);
var
  List: TRawUTF8List;
begin
  List := TRawUTF8List.Create;
  try
    try
      List.LoadFromFile('MapList.dat');
    except
      memo1.Lines.Add('err loading');
    end;

    memo1.Lines.Add(List.Count.ToString);
  finally
    List.Free;
  end;
end;

And file to test with: https://www.dropbox.com/s/knojv1j04xzvs … t.dat?dl=0

Last edited by igors233 (2018-06-13 19:20:35)

Offline

#2 2018-06-13 21:02:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: RawUTF8List loading problem

Please check https://synopse.info/fossil/info/641362ff27

Thanks for the report!

Offline

#3 2018-06-14 09:00:16

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: RawUTF8List loading problem

Thanks, it's working now.

Offline

Board footer

Powered by FluxBB