在设计模式下关闭窗体时出现RVSplitContainer错误 [英] RVSplitContainer Error When Closing Form in Design Mode

查看:210
本文介绍了在设计模式下关闭窗体时出现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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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