After changing this methods in preview.pas it works :
- Code: Select all
procedure TIntegerList.LoadFromStream(Stream: TStream);
var
Size: Integer;
begin
Clear;
Stream.ReadBuffer(Size, SizeOf(Integer));
Count := Size;
Stream.ReadBuffer(Pointer(List)^{List^}, Count * SizeOf(Integer));
end;
procedure TIntegerList.SaveToStream(Stream: TStream);
var
Size: Integer;
begin
Size := Count;
Stream.WriteBuffer(Size, SizeOf(Integer));
Stream.WriteBuffer(Pointer(List)^{List^}, Count * SizeOf(Integer));
end;