Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Periodically Hangs for Several Seconds

Tags:

I'm having a problem where VS2010 Ultimate is freezing up every so often for several seconds before returning to normal operation. This happens several times during a session, and is obviously very annoying. I haven't been able to pin it down to any specific activity-- it seems to hang whenever I scroll around in a document, open/create a document, basically anything. Anyone else have this issue or know what might be the cause?

like image 526
Chris Cashwell Avatar asked Jan 05 '11 18:01

Chris Cashwell


People also ask

Why does Visual Studio freeze so much?

The freeze of the solution is caused by a feature that is meant to fasten up solution loading: parallel project initialization. It seems to be an issue that some others already had with 16.2. x versions, so it may be a regression (as it is flagged as fixed).

Why VS code is hanging?

If while opening a large file, VSCode freezes and then crashes, you need to delete some files. So, open Run, paste “%AppData%” and click Ok. Now, open Code > Backup and then delete the only folder that is inside that directory. Finally, restart VSCode and see if the issue persists.


1 Answers

Incompatible add-ons or system configurations can cause Visual Studio issues (performance issue, error, etc).

Fortunately we can try to troubleshoot the issues by referring to the Visual Studio activity log.

Simply run the following command to run Visual Studio 2010 and log its all activities.

DevEnv.exe /log 

The log file will be generated to:

XP

%USERPROFILE%\Application Data\Microsoft\Visual Studio\10.0\ActivityLog.xml

Vista & Windows 7

%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml

 
Once you run it, 2 files will be generated: ActivityLog.xml and ActivityLog.xsl

And when you open the ActivityLog.xml, it will contain something like this:

enter image description here

like image 96
Jeremy Thompson Avatar answered Feb 06 '23 09:02

Jeremy Thompson