Page 1 of 1

Running "CEF4Delphi" project under IDE in Win64

Posted: Fri Jan 26, 2018 5:58 pm
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 ?

Re: Running "CEF4Delphi" project under IDE in Win64

Posted: Fri Jan 26, 2018 6:28 pm
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.

Re: Running "CEF4Delphi" project under IDE in Win64

Posted: Sat Jan 27, 2018 2:45 pm
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.