+1  A: 

I've seen something similar happen when you have a circular reference in a specific way in a class. It's trying to show intellisense and ends up in an infinite loop trying to build the list. I don't remember the exact circumstances now, though.

Joel Coehoorn
I was wondering if there was something like that. I haven't a clue how to check for it though... not in something this large.
Andrew Backer
+1  A: 

Use Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and trace the activity of Visual Studio when it exhibits this behavior. I have done this many times before with great success.

I am actually monitoring Excel on startup to determine why Excel is having problems with a VSTO Add-in. It turns out Excel is trying to also load a previous version, so I have two add-ins loaded. I figured this out in less that a minute. Without Process Explorer I might have been troubleshooting for hours or days.

AMissico
It has stopped doing it for the moment, after i reinstalled components and ran your cleaner a few times. I like the script you posted at http://missico.spaces.live.com/blog/cns!7178D2C79BA0A7E3!370.entry and I have not modified it at all. Very handy. I was too lazy to write this one myself, so thanks! I hope this stays fixed.
Andrew Backer
I cannot tell you how many times that script has worked. I run it at least three times a week. Just today I ran it two times (and rebooted twice). Usually, you have to run it more often with C#, ASP.NET, and C#/ASP.NET. (ASP.NET Web Site Projects with multiple C# and VB.NET are the worst.)
AMissico
A: 

Given up and wiped VS 2008 & all supporting software. Reinstalling now. It is fun to debug, but I had to cancel a meeting this morning because I couldn't get anything going.

If I get a job at MS then I'll look into it further... but this one is just too hard for me and my limp debugging skills leftover from years doing .net ;)

DOH! Reinstalled and it is still broke! I may actually have to solve this :(

@amissico: thanks, i had forgotten about that completely.

The problem is somewhere in the parsing thread, and I can't work out how to pinpoint what it is doing wrong. I see lots of FS activity, but nothing that I can identify as wierd. It just keeps building temp files (all the same name?) It just looks like it is doing everything everytime, the slow way. I don't know what it should look like, though.

Startup is fine, this is mostly happening when I edit files. It just starts chewing for intellisense, it appears, but why it takes so long is wierd.

Andrew Backer
Have you used Process Monitor yet?
AMissico
Clear all your Visual Studio "temporary" files. Check out the "Clear Recent" script at http://missico.spaces.live.com/blog/cns!7178D2C79BA0A7E3!370.entry. <b>Modify it for your own needs.</b> For instance, I dislike Flash, so you may want to remove the call to ClearStupidFlash and the other non-Visual Studio calls. Please review the script and verify the contents of the directories before running the script.
AMissico
@amissico - yes,, that was what I was refering to. I see it doing lots of stuff, but nothing that it doesn't do for other projects that work just fine. It makes a few huge vbcXX.tmp files in ~/temp, but all my solutions do that too.
Andrew Backer