Page 1 of 3
Upgrading CEF4Delphi
Posted: Sat Aug 10, 2024 12:50 am
by KenS
I have my own personal email program and have just upgraded from Delphi CE 11 to 12. I have been using CEF4Delphi for some time.
I downloaded cef_binary_126.2.18+g3647d39+chromium-126.0.6478.183_windows32.tar and unpacked it (took over 3 hours??).
The instructions say to open CEF4Delphi_group.groupproj group file. I can't seem to find it.
I looked back to previous installs and I think I used CEF4Delphi.apk.
I noticed the forum is locked to replies - is CEF4Delphi going to keep being developed?
Thanks
Ken
Re: Upgrading CEF4Delphi
Posted: Sat Aug 10, 2024 7:00 am
by salvadordf
Hi,
The TAR.BZ2 file contains the CEF binaries only. The group file is one of the files in the GitHub repository here :
https://github.com/salvadordf/CEF4Delphi/archive/master.zip
This forum, as many other forums, has regular visits from spammers and one of the safety features against spam is blocking some of the first posts every new user does. I have to approve those posts manually but as soon as you write a few posts this feature will be disabled.
Re: Upgrading CEF4Delphi
Posted: Sat Aug 10, 2024 7:24 am
by KenS
Thank you for the reply.
I had sort of just stumbled over that.
I had just downloaded CEF4Delphi-126.0.6478.183.zip and unpacked it, then loaded Delphi, opened CEF4Delphi_Designtime and built and installed. When I reload or try to load my program I am getting can't load package c:\users\public\documents\studio\23.0\bpl\cef4delphi.bpl
Yeah, spammers ...ggrrr
Thanks
Ken
Re: Upgrading CEF4Delphi
Posted: Sat Aug 10, 2024 8:06 am
by salvadordf
Follow these steps to install CEF4Delphi :
https://github.com/salvadordf/CEF4Delphi/wiki/Installation-in-Delphi
Re: Upgrading CEF4Delphi
Posted: Sun Aug 11, 2024 2:11 am
by KenS
That was what I had been following. I ended up uninstalling and installing again and seems ok.
What I had done previously was to copy uEditorBrowser and uMiniBrowser from your demos, and patch to fit in with what my program wants. This time I am finding a lot more dependencies to other units of yours.
Is there a better way, all I need is to view emails (uMiniBrowser) and edit emails (uEditorBrowser)? This way is painful.
Thanks
Ken
Re: Upgrading CEF4Delphi
Posted: Sun Aug 11, 2024 5:02 am
by KenS
I have postponed trying to run my program, trying to get the MiniBrowser demo app to run.
Got it to compile, crashes in GlobalCEFApp.StartMainProcess
Thanks
Ken
Re: Upgrading CEF4Delphi
Posted: Sun Aug 11, 2024 5:29 am
by KenS
Ok, was looking at wrong locales, demo running now.
Tries to load google.com, status_access_violation
Ken
Re: Upgrading CEF4Delphi
Posted: Sun Aug 11, 2024 7:58 am
by salvadordf
Copy the CEF binaries as explained here :
https://github.com/salvadordf/CEF4Delphi/wiki/Before-you-run-the-demos
Build the SimpleBrowser2 demo and execute it to check that there's no missing file from the CEF binaries that could cause an AV.
The CEF project is about to make a big change in terms of compatibility. Some CEF4Delphi demos use the new running mode called "chrome runtime" and some demos use the old running mode called "alloy".
https://www.briskbard.com/forum/viewtopic.php?t=2298
CEF 128 will only have the "chrome runtime" mode so I would suggest using SimpleBrowser2 as a template for your application and then add the features you require from the EditorBrowser demo. SimpleBrowser2 already has the new chrome runtime mode enabled.
Re: Upgrading CEF4Delphi
Posted: Sun Aug 11, 2024 9:32 am
by KenS
Thanks, will try and get back.
Ken
Re: Upgrading CEF4Delphi
Posted: Tue Aug 13, 2024 6:26 am
by KenS
SimpleBrowser2 now compiles, and finds all dll's in bin and all locales.
When run, from Delphi it loads Google ok, then after 10 seconds or so it crashes and opens the CPU window.
Call stack shows a lot of calls to libcef.dll, then wbemprox, then lots of combase.dll.
If run standalone (not from Delphi) it loads ok, but when closed it leaves a running copy in background processes.
Thanks
Ken