a customer uses my application to show/edit/save RTF Text. This app has a really bad performance on the computer of the customer (i5 6400, 12 GByte RAM, Radeon R9, SSD with Windows 10 Home). This method runs more than 6 seconds:
Code: Select all
procedure TFrmProtokoll.SetEditorText(const Value: String);
var Stream: TStringStream;
begin
Stream := TStringStream.Create(Value);
try
Stream.Position := 0;
RichViewEdit1.Clear;
RichViewEdit1.LoadRTFFromStream(Stream);
RichViewEdit1.Format;
RichViewEdit1.Enabled := true;
finally
Stream.Free;
end;
end;
I have absolut no idea what's the reason for this behaviour. Actual we use RichViewEdit V15, today I install the new V17 - same effect. Maybe someone here have an idea?
Best regards