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.

SubProcess Demo Error

Post Reply
ggamak
Posts: 5
Joined: Fri Nov 08, 2024 2:28 am

SubProcess Demo Error

Post by ggamak »

Since it is a non-English passport, I am posting this using a translation.
Please understand even if the text is strange.

When I compile and run the SubProcess demo to test it, the following error occurs.

Error loading libcef.dll
Error Code : 0x0000007E
The specified module could not be found.

When I compile and run the MiniBrowser demo, it runs without any problems.
I did not modify the demo source, and all I did was specify the Chrome Binary path.
I specified the same path for the SubProcess and MiniBrowser demos.

What is the problem?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: SubProcess Demo Error

Post by salvadordf »

Hi,

Perhaps the antivirus software thinks that SimpleBrowser_sp.exe is infected.
These false positives happen sometimes in Delphi applications.

Try this :
  1. Disable the antivirus software for a minute.
  2. Open the SubProcessGrp.groupproj file in Delphi.
  3. Right click on the "SubProcessGrp" icon inside the "Projects" section and select the "Build All" option.
  4. Run the demo.
ggamak
Posts: 5
Joined: Fri Nov 08, 2024 2:28 am

Re: SubProcess Demo Error

Post by ggamak »

I turned off Windows Defender real-time protection and ran Build All as you said.
And then, when I run SimpleBrowser again, the same error occurs.

The binary path options are as follows.
GlobalCEFApp.FrameworkDirPath := 'Chrome';
GlobalCEFApp.ResourcesDirPath := 'Chrome';
GlobalCEFApp.LocalesDirPath := 'Chrome\locales';
GlobalCEFApp.cache := 'Chrome\cache';
GlobalCEFApp.RootCache := 'Chrome\User Data';

The OS is Windows 10 Pro 64bit, 1909 Version.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: SubProcess Demo Error

Post by salvadordf »

The main application process and the subprocesses must have the same GlobalCEFApp configuration.
Set the GlobalCEFApp property settings in the uCEFLoarder and uCEFLoader_sp units.
ggamak
Posts: 5
Joined: Fri Nov 08, 2024 2:28 am

Re: SubProcess Demo Error

Post by ggamak »

I made a stupid mistake. Thank you.
Post Reply