473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
Nov 14 '06 #1
4 2129
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.

"Jules Winfield" <gh****@englewood.comwrote in message
news:Lp******************************@giganews.com ...
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


Nov 14 '06 #2
JS
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'.

Nov 14 '06 #3
Wow, that was it! Never would have found that toggle on my own... thanks for
the tip!
"JS" <jn*********@gmail.comwrote in message
news:11*********************@f16g2000cwb.googlegro ups.com...
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'.

Nov 14 '06 #4
I don't know if you're aware, but all the patches mentioned by Robin S are
wrapped up in Service Pack 1.
I've got the beta installed - not sure when the actual release is (or
was?!) - but the beta has sped up my VS2005 installations on my 2.6Ghz,
512Mb laptop, my 2.8GHz Celeron (<shudders>), 512Mb thing at work, and also
on my 3.2GHz, 2GB home desktop.
I'd do a search through this newsgroup for pros and cons of SP1 before you
install it, but it definitely gets my vote for an overall speed increase.
____________________________________
The Grim Reaper

"Jules Winfield" <gh****@englewood.comwrote in message
news:fY******************************@giganews.com ...
Wow, that was it! Never would have found that toggle on my own... thanks
for the tip!
"JS" <jn*********@gmail.comwrote in message
news:11*********************@f16g2000cwb.googlegro ups.com...
>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'.


Nov 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: _R | last post by:
I'm porting an old app from VC++6 to .NET and need to update the bitblt functions from DibSection to managed code. The older functions ran fine but I may as well opt for the fastest, most...
1
by: David Hearn | last post by:
I have a new website that I am working on in VS2005. I know that the SQLConnection, SQLDataAdapter and a few other components are not loaded into the toolbox by default. So I click "Add Items",...
1
by: Dean Slindee | last post by:
Will there be a VS2003-style splitter control in VS2005 when it gets past Beta? I am not referring to the new splitter container in VS2005, but the original splitter control in VS2003. If not,...
22
by: Albert Oppenheimer | last post by:
I thought my program had to be caught in a loop, and cancelled it through the task manager. It took about one second in Java, but re-implemented in C, it had already run over one minute. I set...
1
by: Sagaert Johan | last post by:
Hi How can i add an icon to my customcontrol so it appears in the toolbox ? How is this done in VS2005 ?
13
by: rperreta | last post by:
I'm using VB .NET and it is extremely slow. I went through all the support channels a few months back and since then have stopped development on the project. We are losing money and I have...
3
by: Chris288 | last post by:
Hi, I have a problem where our app when compiled in VS2005 runs about 50% the speed it attains in VS2003. This is an unmanaged C++ app. I have tried most combinations of the optimization and...
1
by: TonyJ | last post by:
Hello! In VS2003 I could use the Toolbox to drag an adaper into the window form. This adaper was located under the Data section in the Toolbox. In VS2005 I can't find any adaper anywhere in...
2
by: alberthung01 | last post by:
Hi all, I wrote a component with ComponentDesigner to let users drag and drop it to WebPage from toolbox directly. Just like the behavior of dataAdapter. But it works fine on ASP.NET 1.1 but not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.