Visual Studio 2005在构建后挂起 [英] Visual Studio 2005 hangs after build

查看:95
本文介绍了Visual Studio 2005在构建后挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在使用Visual Studio 2005构建后发现了一个挂起。由于这个问题越来越严重,我开始寻找解决方案。

I observed a hang after building with Visual Studio 2005. Since this problem is getting worse and worse I started to look for a solution.

项目范围:

标题文件:1045

来源文件:488

Header Files: 1045
Source Files: 488

问题:

当我执行"重建解决方案"时;,创建目标文件,然后成功构建可执行文件。在此Visual Studio冻结约50秒后(项目大小越来越长)。当挂起完成时,最后两行
(如下所示)显示指示控件返回给用户。

When I execute "Rebuild solution", the object files are created, then the executable is successfully built. After this Visual studio freezes for about 50 seconds (getting longer with the project size). When the hang is completed, the last two lines (indicated below) show up indicating that control is returned to the user.

1>驱动程序 - 0错误, 0警告

==========重建全部:1成功,0失败,0跳过==========

1>Driver - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

当挂起时,可执行文件已经可用,因此这个问题既不是由编译器也不是链接器引起的。单个目标文件的简单构建不会导致此挂起。

While the hang is going on, the executable is already usable so this problem is neither caused by compiler nor the linker. Simple builds of single object files do not cause this hang.


  • Microsoft Visual Studio 2005
  • 版本8.0.50727.762  (SP.050727-7600)
  • Microsoft .NET Framework
  • 版本2.0.50727
  • XP 32位SP3
  • HP Compaq dc7800

信息:

我在上面使用了FileMon.exe项目文件夹并观察到生成可执行文件后,devenv.exe会执行某种"文件扫描"操作。在项目目录中。每个目录和子目录都会被打开和关闭。在为
所有目录完成此操作后,Visual Studio将返回控件。

I used FileMon.exe on the project folder and observed that after the executable is generated, devenv.exe does some kind of "file-scan" on the project directory. Every directory and subdirectory gets opened and closed. After this has been done for all directories, Visual Studio returns control.

示例:

2736460    09:41:46.177    devenv.exe的:4956    IRP_MJ_CLOSE    D:\ ...   SUCCESS       


2736461    09:41:46.177    devenv.exe的:4956    IRP_MJ_CREATE    D:\ ... 成功

2736462    09:41:46.177    devenv.exe的:4956    IRP_MJ_DIRECTORY_CONTROL    D:\ ... SUCCESS  


2736463    09:41:46.177    devenv.exe的:4956    IRP_MJ_CLEANUP    D:\ ... SUCCESS       


2736464    09:41:46.177    devenv.exe的:4956    IRP_MJ_CLOSE   D:\ ...   SUCCESS       


2736465    09:41:46.177    devenv.exe的:4956    IRP_MJ_CREATE    D:\ ...   成功

2736466    09:41:46.177    devenv.exe的:4956    IRP_MJ_DIRECTORY_CONTROL    D:\ ...


...

2736460    09:41:46.177    devenv.exe:4956    IRP_MJ_CLOSE     D:\...    SUCCESS       
2736461    09:41:46.177    devenv.exe:4956    IRP_MJ_CREATE     D:\...   SUCCESS
2736462    09:41:46.177    devenv.exe:4956    IRP_MJ_DIRECTORY_CONTROL    D:\... SUCCESS  
2736463    09:41:46.177    devenv.exe:4956    IRP_MJ_CLEANUP    D:\... SUCCESS       
2736464    09:41:46.177    devenv.exe:4956    IRP_MJ_CLOSE    D:\...    SUCCESS       
2736465    09:41:46.177    devenv.exe:4956    IRP_MJ_CREATE     D:\...     SUCCESS
2736466    09:41:46.177    devenv.exe:4956    IRP_MJ_DIRECTORY_CONTROL    D:\...
...

为什么devenv.exe会执行此操作以及如何禁用此"看似"无用的行动?

Why is devenv.exe doing this and how can I disable this "seemingly" useless action ?

谢谢。

Lorenz

推荐答案

Hello Lorenz, 

欢迎来到MSDN论坛。我的名字是Shane Hu。

我详细看到了这个问题,你可以尝试以下几个步骤来解决这个问题:

1.      
Devenv.exe / SafeMode

1.      Devenv.exe /SafeMode

2.      ;  
Devenv.exe / ResetSettings

2.      Devenv.exe /ResetSettings

3.      
Devenv.exe / ResetSkipPkgs

  如果
这些步骤仍然无法解决这个问题,接下来我想在Visual Studio之后看到Process Manager生成的日志忌用。请让Process Manager打开,同时打开visual studio,正常使用它。如果visual studio挂起,请立即将
由Process Manager生成的最新日志文件发送给我。
我的邮箱:v-shah at microsoft.com

最好的问候,           ;          

Shane


这篇关于Visual Studio 2005在构建后挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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