Hi, i'm trying to create browser programmatically, in older versions this worked well, but here not good. Help me please.
[quote]type
browser = class(TChromium)
private
public
function MustCreateResourceRequestHandler : boolean;override;
constructor create();
procedure doOnGetResourceHandler(const browser: ICefBrowser; const frame: ICefFrame; const request: ICefRequest; var aResourceHandler: ICefResourceHandler);override; -this event isn't called anyway, what need to do to fix this?
end;
constructor browser.create();
begin
inherited create(form1);
self.createbrowser(nil,''); -this worked well, but now AV, can i somehow create browser inside this constructor?
end;
function browser.MustCreateResourceRequestHandler;
begin
result:=true;
end;
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Creating browser
- salvadordf
- Posts: 4575
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Creating browser
Hi,
I just uploaded a new CEF4Delphi version with more NIL checks in TChromiumCore.
However, I would call TChromium.createbrowser outside the constructor function.
If you find more issues, please provide all the details about the errors to facilitate debugging and fixing those issues.
I just uploaded a new CEF4Delphi version with more NIL checks in TChromiumCore.
However, I would call TChromium.createbrowser outside the constructor function.
If you find more issues, please provide all the details about the errors to facilitate debugging and fixing those issues.
Re: Creating browser
Ok. Thank you for fixing. 
