views:

70

answers:

4

I Recently I installed VS2010 on my desktop. Everything was fine until I started noticing that after each build my computer freezes up(for almost 2-5 minutes). I removed all the extensions and tried still no luck.

Any suggestions ??

A: 

Have you tried starting devenv with the /ResetSettings option?

For spurious waits of a few seconds, I might also look for things like failing network accesses - perhaps with Wireshark and/or Procmon.

The install for VS2010 isn't actual too bad, so an uninstall/reinstall isn't the kind of misery it has been in recent earlier versions.

Will Dean
Sorry, I forgot to mention that I have already tried uninstalling VS2010. Still no luck.
+2  A: 

Install procmon, and see what's happening. Do you have anti-virus running? Does the problem go away if you disable it?

chris
Thanks Chris, procmon really helped to find what DEVENV.exe is doing. Actually during each build, I could see ExpansionsXML.xml file is being processed again and again. I found the old microsoft support http://support.microsoft.com/kb/956549. This has resolved my issue. What I did, First delete the file (C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\10.0\1033\ExpansionsXML.xml). Then, go to the registry and delete the following key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Languages\CodeExpansions. Restart the IDE. I will update more if I see same issue.
Is procmon a 3rd party tool or something that comes with Windows or VS2010? Link?
Dan Esparza
No, it's a tool from sysinternals - since bought by Microsoft - http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
chris
+1  A: 

If you 'build' with F5, it could be a problem with Intellitrace. Try disabling it to see if your problem goes away. (Relevant discussion with Microsoft here, still an open issue as of 2010-07-20.)

To disable IntelliTrace, navigate to Tools->Options->IntelliTrace, and uncheck “Enable IntelliTrace”.

Scott Fletcher
Scott, I was not 'buidling' using F5.
+2  A: 

Actually during each build, I could see ExpansionsXML.xml file is being processed again and again. I found the old microsoft support support.microsoft.com/kb/956549. This has resolved my issue. What I did, First delete the file (C:\Users\\AppData\Local\Microsoft\VisualStudio\10.0\1033\ExpansionsXML.xml). Then, go to the registry and delete the following key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Languages\CodeExpansions. Restart the IDE. I will update more if I see same issue

After removing ExpansionsXML.xml, VS2010 is working fine without any issue.