显示FolderBrowserDialog后出错

发布于 2024-07-24 08:13:33 字数 441 浏览 1 评论 0原文

我正在开发一个备份程序,为了确定目标位置,我让他们选择输入或浏览到它。 最近,在他们使用FolderBrowserDialog 浏览到该位置并关闭包含的表单后,我收到此错误:

托管调试助手“DisconnectedContext”已检测到“C:\”中存在问题Users\JFV\Documents\Visual Studio 2008\Projects[备份程序]\bin[备份].exe'。 附加信息:上下文 0x792960' 已断开连接。 从当前上下文(上下文 0x7927f0)释放接口。这可能会导致损坏或数据丢失。 为了避免此问题,请确保所有上下文/单元都保持活动状态,直到应用程序完全完成使用表示其中存在的 COM 组件的 RuntimeCallableWrappers 为止。

有其他人看到过这个错误或者知道如何处理它吗?

任何和所有的帮助表示赞赏!

-JFV

I'm working a backup program and to determine the destination location, I give them the choice to type it in, or browse to it. Lately, I've been getting this error after they browse to it using the FolderBrowserDialog to set the location and the containing form is closed:

Managed Debugging Assistant 'DisconnectedContext' has detected a problem in 'C:\Users\JFV\Documents\Visual Studio 2008\Projects[backup program]\bin[backup].exe'.
Additional Information: Context 0x792960' is disconnected. Releasing the interfaces from the current context (context 0x7927f0).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the application is completely done with the RuntimeCallableWrappers that represent COM components that live inside them.

Has anyone else seen this error or know how to deal with it?

Any and all help appreciated!

-JFV

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

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

发布评论

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

评论(1

满身野味 2024-07-31 08:13:33

有一篇关于您的错误消息的 msdn 文章。 但它与FolderBrowserDialog 无关。
您是否在FolderBrowserDialog上调用Dispose()

There is a msdn article about your error message. But it has nothing to do with a FolderBrowserDialog.
Do you call Dispose() on the FolderBrowserDialog?

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