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 ?
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.
Running "CEF4Delphi" project under IDE in Win64
-
- Posts: 41
- Joined: Sun Feb 05, 2017 8:53 am
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Running "CEF4Delphi" project under IDE in Win64
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.
Make sure you are using the 64 bit CEF3 binaries and use Delphi's debugger to know what function is freezing your CPU.
-
- Posts: 41
- Joined: Sun Feb 05, 2017 8:53 am
Re: Running "CEF4Delphi" project under IDE in Win64
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.
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.