如何调试Windows窗体设计器崩溃? [英] How do I debug Windows Forms Designer crashing?

查看:165
本文介绍了如何调试Windows窗体设计器崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体项目。它已经从派生的主要形式系统:视窗:形式:表格,我可以没有任何问题在设计器中打开。如果我试图接近的设计师,虽然,它杀死的Visual Studio(V2008带SP1)。

I have a windows forms project. It has a main form derived from System::Windows::Forms::Form which I can open in designer without any problems. If I try and close designer though, it kills Visual Studio (v2008 with SP1).

该表格包含一个标签来控制,与各种系统:视窗:形式:用户控件派生形式的网页。所以我猜测故障出在什么地方的主要形式还是那些子组件之一。问题是我不知道我该怎么都缩小它?

The form includes a tab control which has pages with various System::Windows::Forms::UserControl derived forms. So I'm guessing the fault lies somewhere in the main form or one of those sub-components. The problem is I don't know how I can narrow it down at all?

我试着调试与开发环境的另一个副本,但我不能拿到破发点的工作。

I've tried debugging from another copy of the developer environment, but I can't get the break points to work.

如何攻击这个问题的任何建议将非常感激地接受!

Any suggestions on how to attack this problem would be very gratefully received!

通过试验和错误我已经将范围缩小到一个系统:视窗:形式:用户控件导出控制和崩溃嵌套在时控制仅出现系统:视窗:形式:TabControl的。是不是有什么标签控件做它关闭时,它也许可以导致崩溃?

By trial and error I've narrowed it down to a single System::Windows::Forms::UserControl derived control, and the crash only occurs when that control is nested within a System::Windows::Forms::TabControl. Is there something the tab control does when it closes which could cause the crash perhaps?

推荐答案

尝试打开VS的另一个实例,进入调试 - >附加到工艺,从列表中选择另一VS(一个你在你的项目),然后把断点放在你的应用程序(的地方很可能会导致这个错误),并运行你的项目,你应该能够调试它,找到什么使VS崩溃。

Try open another instance of VS, go to Debug -> attach to process, choose another VS from the list (the one you have your project in), then put the breakpoint somewhere in your application (somewhere it is likely to cause this error), and run you project and you should be able to debug it and find what make VS crash.

好运气

这篇关于如何调试Windows窗体设计器崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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