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.

Running "CEF4Delphi" project under IDE in Win64

Post Reply
michal@dorfin.waw.pl
Posts: 41
Joined: Sun Feb 05, 2017 8:53 am

Running "CEF4Delphi" project under IDE in Win64

Post by michal@dorfin.waw.pl »

I have strange problem with runing my project under Win64 in IDE (Tokyo 10.2.2) with CEF4Delphi.
It compiles OK.
It runs perfect when I start EXE from Explorer (outside RAD IDE).
If freezes RAD IDE (Tokyo 10.2.2.) and I have to kill IDE. The CPU usage of IDE is substantial. I tried both configs: RELEASE and DEBUG.
In Win32 config - everything is perfect. My project runs under IDE with no problems.
Do You have any idea where to look for the solution ?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Running "CEF4Delphi" project under IDE in Win64

Post by salvadordf »

Unfortunately, I just have a Delphi 10.2 Starter license and I can only test 32 bit applications.

Make sure you are using the 64 bit CEF3 binaries and use Delphi's debugger to know what function is freezing your CPU.
michal@dorfin.waw.pl
Posts: 41
Joined: Sun Feb 05, 2017 8:53 am

Re: Running "CEF4Delphi" project under IDE in Win64

Post by michal@dorfin.waw.pl »

I have probably found the solution of this issue.
To start CEF4Delphi project I use Your demo as a template.
You have in Your code this (or something similiar) :

procedure TForm1.BrowserCreatedMsg(var aMessage : TMessage);
begin
...
Chromium1.LoadURL(...)
...
end;


When I changed it to
...
SendMessage();
...
and in "message listener function" I run this :
Chromium1.LoadURL(...)
everything works fine in RAD IDE with Win64 config.
Post Reply