Page 1 of 1

TChromium.Reload problem in 87.1.6

Posted: Sun Nov 22, 2020 1:43 pm
by michal@dorfin.waw.pl
I've just updated to 87.1.6.
Previous version that I used was: 85.3.6.
I noticed that when one fires "TChromium.Reload" -> there is an CPU error in LIBCEF.DLL and "ILLEGAL INSTRUCTION" error message box.
The same code works fine in 85.3.6.

I thought that my code is broken - maybe some breaking changes were made, but no.
I tried SimpleBrowser2 demo, added a button "Reload" with this click event handler:

Code: Select all

procedure TForm1.ReloadClick(Sender: TObject);
begin
 Chromium1.Reload;
end;
When I clicked the button - a "CPU" breakpoint occured in LIBCEF.DLL. After pressing "F9" - message box with error was shown. See attached screen.
What am I doing wrong ?
Compiling for Windows 64 bit.

Re: TChromium.Reload problem in 87.1.6

Posted: Sun Nov 22, 2020 2:07 pm
by salvadordf
Thanks for the report!

I also noticed that issue and reported it to the CEF project :
https://bitbucket.org/chromiumembedded/ ... ou-use-the
https://github.com/salvadordf/CEF4Delphi/issues/323

It affects most of the demos but not all of them. The "external message pump" demos can be used safely.

However, the safest thing to do at this point is keep using the previous CEF version.
https://github.com/salvadordf/CEF4Delph ... ses/latest

Re: TChromium.Reload problem in 87.1.6

Posted: Sun Nov 22, 2020 4:00 pm
by salvadordf
I just uploaded a new version of CEF4Delphi with a workaround for this issue.
Please, download it from GitHub.