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.
I have Delphi 2007 along with the latest Chromium 134.3.2. Any (or should I say every) demo project craches with Access Violation when trying to open any page (including the home page) on the following website:
It's not Delphi 7 that I use. It's Delphi 2007. And I know how to use your wonderful product on Delphi 2007. I've been doing it for years and I'm a huge fan! My own product that has been on the market for 20+ years and has thousands of active users has been using CEF4Delphi for most of that time.
Please try the website address that I gave you. The demo starts just fine, but when you try to open that exact website - you'll see the Access Violation. And if you run the compiled .exe outside the debugger it crashes after a small delay. So far that website is THE ONLY ONE that causes this behavior. Luckily enough, I couldn't find the second website that causes this.
You do not have the required permissions to view the files attached to this post.
Just to make sure, I compiled the SimpleBrowser demo in Delphi 12 (tried both x86 and x64) - the result is the same. It starts just fine, but when I try to open that URL - the same Access Violation.
You do not have the required permissions to view the files attached to this post.
Please, enable the debug log and post the file contents when the demo crashes.
Try disabling the antivirus for a moment and try to reproduce this issue. Sometimes the antivirus deletes suspicious files and the browser might be affected.
I deleted the link to avoid problems but it would be great to have a safe for work website example to reproduce this issue.
[0320/115136.565:WARNING:resource_util.cc(83)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
And yes, I've tried setting the root_cache_path. In fact, I've tried a lot of things. But the results is always the same.
I sent you an email with the address that causes this problem. I'm pretty sure the issue is pretty easy to fix on your side.
That webpage shows a JavaScript dialog and CEF has a known issue with JS dialogs and browsers using Alloy runtime style :
https://github.com/salvadordf/CEF4Delphi/issues/548
Implement custom dialogs as shown in this demo : CEF4Delphi\demos\Delphi_VCL\JavaScript\JSDialog