Frame names crash
Posted: Wed Feb 24, 2021 6:31 pm
Using Delphi 10.4, windows 10, CEF 85.3.12, demo program uMiniBrowser.
I added a TButton and a TMemo to the TMiniBrowserFrm form.
Added the onclick procedure for the TButton:
procedure TMiniBrowserFrm.Button1Click(Sender: TObject);
var S: TStrings;
begin
S:= TStrings.Create;
Chromium1.GetFrameNames(S);
Memo1.Lines.Text:= S.Text;
S.Free;
end;
Run time error takes place in unit System.Classes in following function, the line "Result := GetCount;" generates 'Abstract Error'
function TStrings.Add(const S: string): Integer;
begin
Result := GetCount;
Insert(Result, S);
end;
Any Ideas?
I added a TButton and a TMemo to the TMiniBrowserFrm form.
Added the onclick procedure for the TButton:
procedure TMiniBrowserFrm.Button1Click(Sender: TObject);
var S: TStrings;
begin
S:= TStrings.Create;
Chromium1.GetFrameNames(S);
Memo1.Lines.Text:= S.Text;
S.Free;
end;
Run time error takes place in unit System.Classes in following function, the line "Result := GetCount;" generates 'Abstract Error'
function TStrings.Add(const S: string): Integer;
begin
Result := GetCount;
Insert(Result, S);
end;
Any Ideas?