VS takes several minutes to rename controls

VS takes several minutes to rename controls

Post by SGVyYmVydC » Thu, 26 Apr 2007 16:34:04


When I create complex forms with many controls in either VB or C# using VS
2005, it can take several minutes to rename a control, ie. Label234 to
LabelEnablePrompt. This occurs both in debug and release mode and regardless
of if the project was recently saved. This has occurred in several projects
on both XP and Vista. During this renaming operation, CPU utilization goes to
50%.

My computer is a Pentium IV HT 2.6 GHz, 2 GB RAM, defragged SATA HD with
lots of space. Available memory is about 900 MB.

Since I have to take drastic measures to resolve this problem any
suggestions would be welcome.


--
Herbert N Swearengen III
 
 
 

VS takes several minutes to rename controls

Post by SGVyYmVydC » Thu, 26 Apr 2007 22:42:01

I reduced the time from several minutes to 6 or 7 seconds by doing the
following:

1. Created a single pagefile 1.5X my RAM on a separate hard drive from the
system. Then defragged that drive.

2. Removed memory tweaks to keep kernel in RAM and force unloading of unused
DLLs.

3. Frequently (about every 30 minutes) close and reopen the project and VS
2005.

Possibly these ideas may help others with performance problems.

--
Herbert N Swearengen III