See mail from Mattias.
On 03/10/2016 22:17, Martin Collins via Lazarus wrote:
If IsPublishedProp(Comp, 'Lines') then
begin
PropInfo := GetPropInfo(Comp, 'Lines', [tkClass]);
SynEdit.Lines is TStrings, not TStringList.
HTMLFile := TStringList(GetObjectProp(Comp, PropInfo, TStrings));
If anything, you get a reference to the SynEdit.LInes object, but you do
NOT create a new object here
HTMLFile.Free;
So this then is the same as
SynEdit.Lines.Free;
And that you should not do.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus