3

I am using Visual c# express 2010. Normally it works fine, but often (not always) when I leave it open for a few days the program itself becomes choppy. It takes half a second for a mouse click or keystroke to register. Even moving the mouse on the screen is choppy. I have attempted in the past to test if it was the project I am working on, by running it and playing with it for a few hours, then leave it running for a few days, but it doesn't seem to have any problems. only VCSExpress.exe seems to have the problem.

The reason I chose to post this question today is that when I started working, it was choppy, I shut it down and restarted, worked good for an hour, then starting getting choppy (after only an hour), same problem as always, shut it down and restarted, and now it working fine.

Anyone have any ideas.

I am programming in Windows. C# Winforms. and sql

Dor Cohen
  • 16,769
  • 23
  • 93
  • 161
General Grey
  • 3,598
  • 2
  • 25
  • 32

3 Answers3

2

Visual studio is a very capricious creature and these sorts of performance problems are not uncommon at all. As nearly as I can tell this is caused by resource deadlocks within among other programs that cause a few different requests to jockey for rights to a specific resource, be it the mouse, a file, the graphics card, or anything else it feels it might need. I have had problems like this surface on literally dozens of different computers with wildly different hardware. A few of them have no other major applications installed besides VS2010.

The only thing I have been able to find that helps control the problem is to use a program like Process Lasso, which will allow you set core affinity for visual studio on load, to restrict VS from using the first 1 or 2 cores on the machine. This will not fix the problem completely, but in my experience it makes it less common and also reduces the severity when it happens (it will, at least, not freeze basic file navigation and mandate Ctrl-Alt-Del to kill the process in a hurry).

tmesser
  • 7,558
  • 2
  • 26
  • 38
  • well it's good to know I am not alone in this. I suppose my fear was that it was something I was doing in my program. Memory leak or something. thanks for the thoughts I am going to wait to see if something more concrete comes in. – General Grey May 07 '12 at 14:14
  • 1
    @K'Leg I'd be much obliged if you could ping my name in here with another comment or the at-tag if someone comes up with a solution that hard-fixes this. I cannot express how many hours I've wasted trying to figure out elegant fixes to this problem for my co-workers and myself. – tmesser May 07 '12 at 14:19
  • @K'Leg: yes, that's what I meat, sorry. – tmesser May 07 '12 at 16:42
  • While this isn't really an answer it does put my mind at ease that it is not something I am doing. I will simply have to deal with it until MS comes up with a solution, or someone else here. It really is not that big of an issue. – General Grey May 08 '12 at 12:05
2

I had problems like these too.

Here are some pointers that might help.

  • Anti-Virus software? Excluding VS2010 process might help, since a AV with live protection will monitor each process that touches files.
  • OS? I Was under XP when I had problems, maybe upgrading to Win7 can help.
  • Any extensions? Resharper, Productivity Tools?

I Had problems with those 3 points combined, after an OS upgrade and AV process exclusion, the situation was better. Hope this helps.

crogeniks
  • 46
  • 7
1

I think it's related to graphics drivers or hardware acceleration.

Try my answer as written in the following question:

vs2010 stuck/freeze in any kind of scrolling

Community
  • 1
  • 1
Dor Cohen
  • 16,769
  • 23
  • 93
  • 161