Delphi TChromium / DCEF3 - Permanent Access Violations

I am trying to use DCEF3 TChromium as a replacement for the TWebbrowser component. I downloaded the packages and installed them on my IDE (Delphi 2007).

I am testing a demo on demos \ guiclient, and when I try to open certain web pages, I get tons of Access Violation exceptions and application crashes. If I'm inside Delphi, I get this exception before Delphi itself crashes:

'Claim error:' item.src 'in \ win32scr \ DBKIMPL.CPP' on line 2691 '

One example of a page with this problem is www.whatsmyuseragent.com

One example of a page that opens correctly is www.google.com

After a lot of testing, I found out that if I set TChromium.Options.Javascript to STATE_DISABLED, the application no longer crashes. BUT it will not run the JS code of the page, so it is useless since the page itself will not load properly.

Any ideas will be greatly appreciated, this question is of interest to everyone who has applications using TWebbrowser, and they need an urgent replacement. Since TWebbrowser uses Internet Explorer and it has been discontinued, even if Microsoft continues to deliver MSHTML in future versions of Windows, it will not follow future web standards and pages will not load correctly in the future. In fact, I already have this problem on pages that use the latest web standards.

+2
source share
1 answer

After several days of struggle, I learned that I am using a master branch, and there is a newer branch (2454). After updating the problem is fixed.

Download link https://github.com/hgourvest/dcef3/tree/2454

+3
source

All Articles