我们的解决方案中有一个项目,其中包含具有多个窗口窗体的测试应用程序。每次我在表单编辑器中打开表单时,Visual Studio 都会出去吃午饭,吃掉整个处理器……直到我终止进程。
我试图移植到一个新项目,考虑其中一种形式,或者是项目文件导致了问题,但新项目表现出相同的行为。但是,在一个新的解决方案中,表单的行为正常。
我们最近确实将解决方案从 2005 年转换为 2008 年,但我找不到任何类似的转换问题。
还有其他人经历过类似的事情吗?
我们的解决方案中有一个项目,其中包含具有多个窗口窗体的测试应用程序。每次我在表单编辑器中打开表单时,Visual Studio 都会出去吃午饭,吃掉整个处理器……直到我终止进程。
我试图移植到一个新项目,考虑其中一种形式,或者是项目文件导致了问题,但新项目表现出相同的行为。但是,在一个新的解决方案中,表单的行为正常。
我们最近确实将解决方案从 2005 年转换为 2008 年,但我找不到任何类似的转换问题。
还有其他人经历过类似的事情吗?
One of the operations which happens during form load is that form controls in your project which appear on the form are instantiated in the Visual Studio process. Given that they are running in the process it's possible for them to do bad things to Visual Studio like cause it to crash or hang.
You could rule this in or out by opening the form and attaching a debugger to visual studio and seeing if any of your controls are in a timely / infinite loop.
搜索所有项目以找到要放入工具栏中的任何自定义控件,我不知道这是否是您的问题的一部分。