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.
X11
Posts: 49 Joined: Thu Jul 25, 2019 10:15 am
Post
by X11 » Fri Sep 06, 2019 1:26 pm
screen
http://prntscr.com/p2of8i
dpr
Code: Select all
begin
CreateGlobalCEFApp;
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.Title := 'Береста 5';
Application.CreateForm(TDM, DM);
Application.CreateForm(TfmMain, fmMain);
Application.Run;
end;
DestroyGlobalCEFApp;
unit
Code: Select all
procedure CreateGlobalCEFApp;
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.OnProcessMessageReceived := GlobalCEFApp_OnProcessMessageReceived;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.EnableHighDPISupport := false;
GlobalCEFApp.DisableFeatures := 'NetworkService,VizDisplayCompositor';
GlobalCEFApp.FrameworkDirPath := 'D:\Dev\Chromium\CEF4Delphi\bin';
GlobalCEFApp.LocalesDirPath := 'D:\Dev\Chromium\CEF4Delphi\bin\locales';
GlobalCEFApp.ResourcesDirPath := 'D:\Dev\Chromium\CEF4Delphi\bin';
end;
salvadordf
Posts: 4565 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Sat Sep 07, 2019 8:50 am
Hi,
There are some issues with the OSR mode in the current version of the CEF libraries.
If you really need to use the OSR mode then use an older release version of CEF4Delphi.
X11
Posts: 49 Joined: Thu Jul 25, 2019 10:15 am
Post
by X11 » Mon Sep 09, 2019 9:25 am
Why does another application launch with the same settings?
X11
Posts: 49 Joined: Thu Jul 25, 2019 10:15 am
Post
by X11 » Tue Sep 10, 2019 12:10 pm
this is test project with error:
https://app.box.com/s/ytcl6njjgexj5538hmklu9f2v44nujon
in Unit2 comment out 2 lines
1. uses aspr_api;
2. self.Caption := String(PAnsiChar(GetHardwareID));
then the application starts without errors
do not forget to specify the paths for CEF on your computer in uMyCEF4Delphi.pas in procedure CreateGlobalCEFApp.
Note. I user ASProtect SKE (aspack.com/asprotect32.html) for protect my application.
salvadordf
Posts: 4565 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Wed Sep 11, 2019 8:17 pm
I looked at the sources and they seem to be fine.
Perhaps there's a compatibility issue between CEF and aspr.dll