CreateGlobalCEFApp;
GlobalCEFApp.StartMainProcess;
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
DestroyGlobalCEFApp;
//second time this does not work
CreateGlobalCEFApp;
GlobalCEFApp.StartMainProcess;// acess violation
Why?
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.
Why this is does not work?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Why this is does not work?
Hi,
CEF can only be initialized once per process. This is a CEF feature and there's no workaround.
Use the code from TabbedBrowser2 or MDIBrowser demos if you need to run several browsers in one application.
Read this document for more information :
https://www.briskbard.com/index.php?lang=en&pageid=cef
CEF can only be initialized once per process. This is a CEF feature and there's no workaround.
Use the code from TabbedBrowser2 or MDIBrowser demos if you need to run several browsers in one application.
Read this document for more information :
https://www.briskbard.com/index.php?lang=en&pageid=cef