Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

The VS2005 ToolBox is big slow jug of lard (not literally, I'm speaking metaphorically)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jules Winfield - 14 Nov 2006 17:32 GMT
I'm using VS2005. I have a solution consisting of twelve projects. All
projects are console/service apps except for one which is a WinForms app.
There are no web projects. I'd say that I'm at around 125k-150k lines of
code in total.

My development machine has 2gigs of physical RAM, a hyperthreaded CPU
running at 3.6ghz, and plenty of harddrive space on a recently defragged
drive. The only installed apps are VS2005 and SQL Server 2005. The OS is
Win2003 Server.

VS2005 seems to be incredibly slow for me. Compiling a project, or even the
whole solution, seems pretty quick -- but after the compile/build is
complete, VS2005 just sits there. The application hangs and accepts no
keyboard or mouse input. It hangs for about 10 seconds. It's irritating
because I compile quite frequently, particularly during debug sessions.

The hang problem doesn't occur in a given VSNet session until I enter
WinForms design mode. The first time I enter design mode, VSNet hangs and
spends about 20 seconds filling the darned toolbox. After the initial
toolbox hang-fest, the post-compile hang problem begins.

I'm suspicious that the entire problem is ToolBox related. By far the
largest project in my solution is the WinForms app. This app contains
somewhere between 75-100 different control classes that derive from
UserControl. VSNet insists on sticking each and every one of these suckers
in the Toolbox. I don't want them there!! There's no need for them to be
there. I will never have occasion to drag one of them onto a form. They are
created dynamically at runtime in the code, not at design time. If there
were a way to tell VS2005 to NOT add my custom controls to it's
slow-as-molasses toolbox, I think the problem might be resolved. Any ideas
on how to do this? Perhaps some special attribute that needs to be applied
to each control?

Thank you for your support,

Jules Winfield
RobinS - 14 Nov 2006 18:05 GMT
Here's some interesting stuff from MSDN with patches for
performance problems with VS2005 when you have multiple
projects in one solution.

http://support.microsoft.com/kb/920805/

This one fixes a problem that sometimes occurs after you
install the one above.

http://support.microsoft.com/kb/924162/

And here's another one:

http://support.microsoft.com/kb/917452/

As for the Toolbox issue, I don't know, but hopefully
someone else hasvsome ideas about that.

Good luck.
Robin S.

> I'm using VS2005. I have a solution consisting of twelve projects. All
> projects are console/service apps except for one which is a WinForms app.
[quoted text clipped - 32 lines]
>
> Jules Winfield
JS - 14 Nov 2006 19:11 GMT
Yes, the toolbox is very slow.

Your VS hang at the end of the build is most likely because VS is doing
its 'AutoToolboxPopulate'.  You can turn this off in
'Tools/Options/Windows Forms Designer'.
Jules Winfield - 14 Nov 2006 19:17 GMT
Wow, that was it! Never would have found that toggle on my own... thanks for
the tip!

> Yes, the toolbox is very slow.
>
> Your VS hang at the end of the build is most likely because VS is doing
> its 'AutoToolboxPopulate'.  You can turn this off in
> 'Tools/Options/Windows Forms Designer'.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.