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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Creating browser

Post Reply
Rockiman
Posts: 6
Joined: Wed Jun 06, 2018 12:11 pm

Creating browser

Post by Rockiman »

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;
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Creating browser

Post by salvadordf »

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.
Rockiman
Posts: 6
Joined: Wed Jun 06, 2018 12:11 pm

Re: Creating browser

Post by Rockiman »

Ok. Thank you for fixing. :)
Post Reply