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.

CEF 4 Delphi Demos

Post Reply
ATatMMO
Posts: 1
Joined: Sat May 22, 2021 2:17 am

CEF 4 Delphi Demos

Post by ATatMMO »

Installed current CEF4Delphi on my new computer and tried to run some demos. Using Delphi XE5.

Minibrowser grinds to a halt because it can't find System.NetEncoding.

SimpleBrowser runs but then crashes into a brick wall telling me
===============================
CEF binaries missing!

The missing files are
cef.pak
cef_100_percent.pak
cef_200_percent.pak
cef_extensions.pak
devtools_resources.pak
===============================

Quick look at code I notice that Function CheckResources in uCEFMiscFunctions

does

TempList := TStringList.Create;
TempList.Add(TempDir + 'snapshot_blob.bin');
TempList.Add(TempDir + 'v8_context_snapshot.bin');
TempList.Add(TempDir + 'cef.pak');
TempList.Add(TempDir + 'cef_100_percent.pak');
TempList.Add(TempDir + 'cef_200_percent.pak');

if aCheckExtensions then TempList.Add(TempDir + 'cef_extensions.pak');
if aCheckDevResources then TempList.Add(TempDir + 'devtools_resources.pak');

if TempExists then
Result := CheckFilesExist(TempList, aMissingFiles)

and reports that it can't find the files.

Looking on old computer which has CEF4Delphi some time ago includes all those files in the binaries but they are not included in the latest version as far as I can see!

So they are either missing or have been renamed or something. And perhaps the code is checking for the wrong things?

I am probably missing something very obvious but I really must stop and go to bed as it is nearly 5am and been fiddling with this for several hours!
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: CEF 4 Delphi Demos

Post by salvadordf »

Hi,

I'm sorry this kept you awake for so long.

The CEF project changed some of the files in that package since the version 90.5.4 in April.

CEF4Delphi updated the functions to check the CEF binaries at that time, including CheckResources in uCEFMiscFunctions.

Uninstall the old CEF4delphi version, download the latest version from GitHub and install it in Delphi :
https://github.com/salvadordf/CEF4Delphi/archive/master.zip

In some extreme cases it's necessary to follow this guide to uninstall it completely :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=772#p3481
Post Reply