planetmarshalluk

Hi there.

Lately I've been having intermittent problems with a build hanging during building the initial project in a solution. When it hangs, VS stops responding and has to be shut down via task manager.

I attached Process Monitor to devenv.exe to see if I couldshed any light on the problem, and the key difference between hanging and successful builds is that the former makes several reads to the cslang dlls whereas the latter does not. Here is the output from Process Monitor

Failing Build -

CreateFile

C:\WINDOWS\Symbols\dll\Microsoft.Build.Utilities.pdb

CreateFile

C:\WINDOWS\dll\Microsoft.Build.Utilities.pdb

CreateFile

C:\WINDOWS\Microsoft.Build.Utilities.pdb

CloseFile

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll

ReadFile

C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\Microsoft.Build.Tas#\7de0c1f23dc6e34c91a97ec6f2c9993c\Microsoft.Build.Tasks.ni.dll

ReadFile

C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\csprojui.dll

ReadFile

C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\cslangsvcui.dll

ReadFile

C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\cslangsvc.dll

ReadFile

C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\cslangsvc.dll

Successful build -

CreateFile

C:\WINDOWS\Symbols\dll\Microsoft.Build.Utilities.pdb

CreateFile

C:\WINDOWS\dll\Microsoft.Build.Utilities.pdb

CreateFile

C:\WINDOWS\Microsoft.Build.Utilities.pdb

CloseFile

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll

I am using Visual Studio 2005 SP1. Any insights would be appreciated.

Thanks,

Andrew.



Re: Visual Studio MSBuild Intermittent hanging build

DanMoseley - MSFT

I'm sorry you've been having this problem.

I can't diagnose it here in the forums. I suggest you open a bug using the instructions at the top of this forum. Please get a full memory dump by attaching to the hung process, and attach it to the bug. Any instructions or sample project to reproduce it would help too.

Dan