消息过滤器表明应用程序正忙,同时使用多个网络浏览器控件

发布于 2024-10-03 21:23:44 字数 273 浏览 0 评论 0原文

感谢您抽出时间,我正在创建一个应用程序,需要 5 时间 来自数据库的 URL,然后在 5 个浏览器控件中导航 分别。此活动是在“后台工作控件的 do”中完成的 工作功能”。第一次加载此窗口窗体时,一切 一切顺利,我有一个离开这个表格的功能(它将去 返回主窗体)。当我再次导航到此表单时,我有 在 Web 浏览器控件中加载文档时发生以下异常。

“消息过滤器表明应用程序正忙。(HRESULT 异常:0x8001010A (RPC_E_SERVERCALL_RETRYLATER))”

Thanks for your time, i am creating an application which will take 5
URL's from database and then navigate each in 5 browser-controls
respectively. This activity is done in "background worker control's do
work function". On first time load of this window form, everything
goes fine, i am having a function of leave this form (which will go
back to main form). when i again navigate to this form, i am having
following exception on loading document in web-browser control.

"The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

季末如歌 2024-10-10 21:23:44

来自 http://msdn.microsoft.com/en- us/library/system.componentmodel.backgroundworker.dowork.aspx

您必须小心,不要在 DoWork 事件处理程序中操作任何用户界面对象。相反,通过BackgroundWorker 事件与用户界面进行通信。

From http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.dowork.aspx

You must be careful not to manipulate any user-interface objects in your DoWork event handler. Instead, communicate to the user interface through the BackgroundWorker events.

对岸观火 2024-10-10 21:23:44

我在backgroundworker_DoWork函数中打开每个web浏览器控件中的每个文档,解决我的问题是通过从backgroundWorker_DoWork中的数据库加载数据并在backgroundWorker_Completed函数中加载每个web浏览器控件中的文档。

I was opening each document in each web-browser-control in the backgroundworker_DoWork function, what solved my problem is by loading data from database in backgroundWorker_DoWork and loading documents in each web-browser-control in backgroundWorker_Completed function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文