在设计模式下关闭窗体时出现RVSplitContainer错误

编程入门 行业动态 更新时间:2024-10-27 05:32:45
本文介绍了在设计模式下关闭窗体时出现RVSplitContainer错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在设计模式下关闭多个表单时收到以下错误。

I'm receiving the following error when I close several of my forms when in design mode.

这个项目最初是在VS2010 Professional中构建的,我从未遇到过错误。升级到Visual Studio 2015后,我不得不为WinForms版本12.0.0.0安装新的Report Viewer。

This project was originally built in VS2010 Professional and I never had the error. After I upgraded to Visual Studio 2015 I had to install the new Report Viewer for WinForms version 12.0.0.0.

在弹出错误的这些表单上,表单上放置了一个小的ReportViewer我用来打印没有查看器的rdlc报告。我甚至无法开始弄清楚导致此错误的原因。我的项目只运行没有错误,我只在关闭表单或退出项目时看到设计模式中的错误。非常感谢您提供的任何帮助。

On these forms that are popping the error there is a small ReportViewer placed on the form that I use to print without viewer the rdlc reports. I'm at a loss of even where to start to figure out what is causing this error. My project runs just fine with no errors and I only see the error in design mode when closing forms or exiting the project. Any help you can provide would be much appreciated.

问候,

推荐答案

Stacy,

Stacy,

代码中的某些内容正在尝试访问该组件。看到它显示"不能访问被处置的对象"。你解释的只是在关闭时才会看到它是有意义的。

Something in your code is trying to access the component. Seeing that it shows "cannot access a disposed object" makes sense for what you explain that you only see it when shutting down.

我不明白拆分容器是如何参与的,但这似乎是正在发生的事情的一部分。

I don't understand how a split container is involved but that seems to be part of what's going on.

您是否设置了断点以确定是否可以解决问题?

Have you set a breakpoint to see if you can figure it out?

更多推荐

在设计模式下关闭窗体时出现RVSplitContainer错误

本文发布于:2023-11-11 16:55:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579028.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   错误   模式下   RVSplitContainer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!