Roman Starkov
Roman Starkov

Reputation: 61502

Visual Studio 2008 Find dialog takes >2s to appear

For some reason my Visual Studio Find dialog, which usually shows instantly after I press Ctrl+F, has started to take more than 2 seconds to show. During this time Visual Studio is entirely unresponsive.

2 seconds for a small window to show is outrageous :) Restarting VS or rebooting the machine didn't help. Has anyone seen this before? How can I fix this?

OS: Vista x64; Defrag: Weekly, at night

Upvotes: 2

Views: 986

Answers (7)

jhnlmn
jhnlmn

Reputation: 1

It must be Aero mode, which causes the problem:

Here is my timing:

  • Launch VS 2008 on Win7.
  • Once GUI is launched, press Ctrl+F
  • Find dialog takes about 5 seconds to fully paint. During this time the entire VS window is repainted several times and very slowly, blinking and flashing like crazy.
  • Close VS
  • Right click on devenv.exe -> Properties -> Compatibility. Check either "Disable Visual Scenes" or "Disable display composition". Press OK.
  • launch VS 2008.
  • Once GUI is launched, press Ctrl+F.
  • Find dialog takes about 1 second to fully paint itself.

Upvotes: 2

Roman Starkov
Roman Starkov

Reputation: 61502

Fixed by reinstalling Visual Studio.

P.S. This has happened again; here's what I observed this time:

  • Visual Studio was running when a major disk defrag occurred.
  • Halfway through the major disk defrag the UI (and the Find dialog in particular) started taking a long time to appear. During the slowdowns the Visual Studio process spends a lot of CPU time in the kernel (according to ProcExp)
  • A Windows Update was pending.
  • Restarting Visual Studio did not help fix the problem.
  • Applying the windows update and restarting the OS fixed the problem.

Upvotes: 0

David Basarab
David Basarab

Reputation: 73341

While your issue is very specific and would be hard to answer, without a lot more detail.

Look through this question on optimizing Visual Studio.

If these don't speed it up, I would look to Microsoft for support.

Upvotes: 1

sylvanaar
sylvanaar

Reputation: 8216

I like to use ctrl-f3. You just position your cursor on the word you want to find, and it will allow you to step through each occurance by pressing f3

Edit: Another option would be to dock the find dialog - so it doesn't require closing and reopening.

Upvotes: 4

joegester
joegester

Reputation: 307

Have you tried deleting the project's .ncb file? It's where VS stores Intellisense data and it seems to just grow forever as the project changes. It will be automatically recreated by VS without all the cruft if you just delete it.

Upvotes: 0

Kyle B.
Kyle B.

Reputation: 5787

CodeRush Xpress (free add-on) has a useful 'Quick Find' feature that tracks down line numbers, text matches, etc.

Upvotes: 0

pkit
pkit

Reputation: 8301

I find that intellisense drains a lot of resources. Since I don't need it (using Visual Assist X) I disabled it. Also see this StackOverflow question containing more info.

Upvotes: 1

Related Questions