Form designer very slow and exhausting disk space in Visual Studio 2005

  • Thread starter Thread starter corradolab
  • Start date Start date
C

corradolab

Hi everyone,

start Visual Studio 2005 and create a new C# Smart Device project,
targeting Compact Framework 1.1.
Add a reference to System.Data.SqlServerCe.
Close an reopen the just created Form1.
Maybe you'll notice it seems a little slower now.
Now open your ProjectAssemblies folder.
On my Vista machine it is C:\Users\Corrado\AppData\Local\Microsoft
\VisualStudio\8.0\ProjectAssemblies
You'll find 8 random-name recently-created directories, each holding a
copy of SqlServerCe.dll

Now lets move to real world example.
I've a big form with a page control, a lot of pages and a lot of
controls.
Opening it requires an unacceptable amount of time: about 45 seconds
on my new PC, up to 4 minutes with older one. Worst, every time I open
it, Visual Studio create more the 1000 folders in ProjectAssemblies,
each filled with the above mentioned 122 KB dll. Thats 122 MB of
wasted space.
Before I realized it I got 17.0000 files using 2 GB of disk space.

We had no trouble with Visual Studio 2003, which opened the big form
in few seconds even on the older PC.

I've about 1000 rows in my form InitializeComponent, so I belive a new
copy of SqlServerCe.dll is created every time VS designer parse an
InitializeComponent row.
Worst, Process Explorer shows every dll copy is loaded in memory
twince...

Can you reproduce my behaviour?
Any workaround?

Kind regards,
Corrado
 
Hi, I am facing this very issue mentioned by corrado. Has anyone figured it out, any workaround for it.

Thanks
Mohammed.



corradola wrote:

Form designer very slow and exhausting disk space in Visual Studio 2005
22-Oct-07

Hi everyone

start Visual Studio 2005 and create a new C# Smart Device project
targeting Compact Framework 1.1
Add a reference to System.Data.SqlServerCe
Close an reopen the just created Form1
Maybe you'll notice it seems a little slower now
Now open your ProjectAssemblies folder
On my Vista machine it is C:\Users\Corrado\AppData\Local\Microsof
\VisualStudio\8.0\ProjectAssemblie
You'll find 8 random-name recently-created directories, each holding
copy of SqlServerCe.dl

Now lets move to real world example
I've a big form with a page control, a lot of pages and a lot o
controls
Opening it requires an unacceptable amount of time: about 45 second
on my new PC, up to 4 minutes with older one. Worst, every time I ope
it, Visual Studio create more the 1000 folders in ProjectAssemblies
each filled with the above mentioned 122 KB dll. Thats 122 MB o
wasted space
Before I realized it I got 17.0000 files using 2 GB of disk space

We had no trouble with Visual Studio 2003, which opened the big for
in few seconds even on the older PC

I've about 1000 rows in my form InitializeComponent, so I belive a ne
copy of SqlServerCe.dll is created every time VS designer parse a
InitializeComponent row
Worst, Process Explorer shows every dll copy is loaded in memor
twince..

Can you reproduce my behaviour
Any workaround

Kind regards
Corrado

Previous Posts In This Thread:

Form designer very slow and exhausting disk space in Visual Studio 2005
Hi everyone

start Visual Studio 2005 and create a new C# Smart Device project
targeting Compact Framework 1.1
Add a reference to System.Data.SqlServerCe
Close an reopen the just created Form1
Maybe you'll notice it seems a little slower now
Now open your ProjectAssemblies folder
On my Vista machine it is C:\Users\Corrado\AppData\Local\Microsof
\VisualStudio\8.0\ProjectAssemblie
You'll find 8 random-name recently-created directories, each holding
copy of SqlServerCe.dl

Now lets move to real world example
I've a big form with a page control, a lot of pages and a lot o
controls
Opening it requires an unacceptable amount of time: about 45 second
on my new PC, up to 4 minutes with older one. Worst, every time I ope
it, Visual Studio create more the 1000 folders in ProjectAssemblies
each filled with the above mentioned 122 KB dll. Thats 122 MB o
wasted space
Before I realized it I got 17.0000 files using 2 GB of disk space

We had no trouble with Visual Studio 2003, which opened the big for
in few seconds even on the older PC

I've about 1000 rows in my form InitializeComponent, so I belive a ne
copy of SqlServerCe.dll is created every time VS designer parse a
InitializeComponent row
Worst, Process Explorer shows every dll copy is loaded in memor
twince..

Can you reproduce my behaviour
Any workaround

Kind regards
Corrado


Submitted via EggHeadCafe - Software Developer Portal of Choice
How to Get Your Silverlight Pages Indexed By Search Engines
http://www.eggheadcafe.com/tutorial...e-1ca9ad6bcac8/how-to-get-your-silverlig.aspx
 
Did you ever get a resolution on this?
I'm haveing the same issue with VS 2008 Pro. I see in Process Monitor that there are thousands of ReadFile, WriteFile operation where tons of copies of system.data.sqlcerverce.dll are made in random directories in ProjectAssemblies.

This is with Compact Framework 3.5
Seems to happen when you try to open a form in the designer. The more complicated the form the more copies of sqlserverce.dll you get.
 
I'm targetting CF v2.0 using VS 2005 and can confirm it is painfully slow.
Also, the IDE hangs up completely for sometimes as long as 20s while opening
forms as you describe.

Seems like they have the same issues with VS2008, which is not encouraging
for someone thinking of upgrading. We also need to target the CF v2.0 (for
the time being) and the latest VS 2010 does not support that (only CF v3.5).

Thanks,
Alain
 
Back
Top