Page 1 of 1

SubProcess Demo Error

Posted: Fri Nov 08, 2024 9:08 am
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?

Re: SubProcess Demo Error

Posted: Fri Nov 08, 2024 11:10 am
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.

Re: SubProcess Demo Error

Posted: Sat Nov 09, 2024 4:34 am
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.

Re: SubProcess Demo Error

Posted: Sun Nov 10, 2024 2:30 pm
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.

Re: SubProcess Demo Error

Posted: Mon Nov 11, 2024 9:08 am
by ggamak
I made a stupid mistake. Thank you.