Delphi TChromium / DCEF3-持续访问违规 [英] Delphi TChromium / DCEF3 - Constant Access Violations

查看:184
本文介绍了Delphi TChromium / DCEF3-持续访问违规的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用DCEF3 TChromium代替TWebbrowser组件。我下载了软件包并将其安装在我的IDE中(Delphi 2007)。

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

我正在demos\guiclient上测试该演示,当我尝试打开某些网页时,我收到大量访问冲突例外,我的应用程序崩溃了。如果我在Delphi中,则在Delphi自身崩溃之前会得到此异常:

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

'Asstion failure:'winm32scr\DBKIMPL.CPP'中的'item.src'在第2691行处

'Assertion failure : 'item.src' in \win32scr\DBKIMPL.CPP' at line 2691'

有此问题的网页的一个示例是www.whatsmyuseragent.com

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

一个正确打开的页面的示例是www.google.com

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

经过大量测试,我发现是否将TChromium.Options.Javascript设置为STATE_DISABLED,该应用程序确实不再崩溃了。但是它不会运行页面的JS代码,因此它无用,因为页面本身无法正确加载。

After a lot of testing i found out if i set TChromium.Options.Javascript to STATE_DISABLED, the app does not crash anymore. BUT it won't run the JS code of the page, so it's useless as the page itself won't load properly.

任何想法都会受到赞赏,这个问题对拥有使用TWebbrowser的应用程序且需要紧急替换的所有人的兴趣。由于TWebbrowser使用的是Internet Explorer,并且已经停止使用,即使Microsoft继续在将来的Windows版本中提供MSHTML,它也不会遵循将来的网络标准,并且将来也无法正确加载页面。实际上,使用最新的Web标准的页面中已经存在这种问题。

Any ideas would be very appreciated, this issue interests everyone who have apps using TWebbrowser and need urgent a replacement for it. Because TWebbrowser uses Internet Explorer and it has been discontinued, even if Microsoft keeps shipping MSHTML in future Windows versions, it won't follow future web standards and pages won't load correctly in the future. In fact, i'm already having this kind of issue in pages using most up-to-date web standards.

推荐答案

之后经过几天的努力,我发现我正在使用master分支,并且有一个较新的分支(2454)。更新后,问题已解决。

After days of struggle, i found out i was using the master branch and there is a newer branch (2454). After update the problem is fixed.

下载链接为 https:/ /github.com/hgourvest/dcef3/tree/2454

这篇关于Delphi TChromium / DCEF3-持续访问违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆