WebCore未初始化-VB.NET中的Awesomium Web浏览器 [英] WebCore is not initialized - Awesomium Web Browser In VB.NET
问题描述
大家好,我使用Awesomium Engine在vb.net中制作了一个网络浏览器.在表单加载中,我输入以下代码:
Hey guys, im making an webbrowse in vb.net using Awesomium Engine. In form load i put this code:
If Not WebCore.IsInitialized Then
WebCore.Initialize(New WebConfig With {.RemoteDebuggingPort = "9300"})
End If
并在表单结束时:
WebCore.DestroyUnwrappedViews() 'Kill background views to shutdown properly
我调试应用程序时出现的问题,它不会加载任何页面.而当我关闭它时,它给我错误"Web未初始化"
The problem when i debug the app, it doesn't load any page. And when i close it, it gives me error "Web Is Not Initialized"
有帮助吗?>
推荐答案
Davethenew,您好,
Hi Davethenew,
感谢您在MSDN论坛中发帖.
Thank you for posting in MSDN Forum.
如文档中所述, WebCore.In > 初始化执行初始化.直到第一个IWebView实例或WebSession被初始化,WebCore才会被初始化. 创建.请参阅以下有关关闭表单的代码段,希望对您有所帮助.
As mentioned in the documentation, the WebCore.Initialize performs initialization. The WebCore will not be initialized until the first IWebView instance or WebSession is created. See the following code snippet about closing form, hope it helps.
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
Try
For Each nWebControl As WebControl In WebCore.Views
nWebControl.Dispose()
Exit For
Next
Catch ex As Exception
End Try
WebCore.Shutdown()
End Sub
并且由于您的问题与第三方dll更相关,因此,如果您对此问题还有其他建议,建议您将其发布到 http://answers.awesomium.com/以获得更好的支持.
And since your issue is more related to third-party dll, if you have something else regarding this issue I suggest you could post your issue to http://answers.awesomium.com/ for better support.
注意:此回复包含对第三方的引用万维网站点. Microsoft会为您提供方便的信息.
Microsoft不能控制这些站点,并且具有未测试在这些站点上找到的任何软件或信息;因此,Microsoft无法作任何陈述 关于在此找到的任何软件或信息的质量,安全性或适用性.
Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
使用互联网上发现的任何软件都存在固有的危险,并且Microsoft警告您,请确保您完全了解风险之后再进行操作.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
最好的问候,
Neda Zhang
Neda Zhang
这篇关于WebCore未初始化-VB.NET中的Awesomium Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!