473,324 Members | 2,246 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,324 software developers and data experts.

Slow code generation and windows form loading

Hello

I am experiencing extremely long time for loading a windows form in my Visual C++ .NET project
This Windows form has just 40 labels, 4 checkBoxes, 2 buttons and 11 numericUpDown.
It takes several minutes to load this form in the form designer when I double click on the .
file in the Visual Studio .NET Solution Explorer. It gets worse with another form that has
more controls.

It gets really dramatic when I try to compile in Release configuration (compilatio
in Debug configuration is fine) or when I select another language to localise the form with the
form designer. That can take up to 20 minutes every time I compile in Release config after a modificatio
or for loading each of the three localisation languages for the form in the form designer.
Then not only the IDE gets blocked, but also everything else on the machine (2 GHz machine
with 512 Mb, same is true with a Centrino 1.6 GHz with 512 Mb). It is the "devenv.exe" process
that uses 100% processor resources during all this time.

Is there any parameter to set or any fix available
Please help, this behaviour is really driving me crazy.

Thanks
J
Nov 17 '05 #1
2 4496
> I am experiencing extremely long time for loading a windows form in my
Visual C++ .NET project.
This Windows form has just 40 labels, 4 checkBoxes, 2 buttons and 11 numericUpDown. It takes several minutes to load this form in the form designer when I double click on the .h file in the Visual Studio .NET Solution Explorer. It gets worse with another form that has more controls.
The KB article (Q832138) at http://support.microsoft.com/?id=832138
describes a QFE that fixes this problem.
It gets really dramatic when I try to compile in Release configuration (compilation in Debug configuration is fine) or when I select another language to localise the form with the form designer. That can take up to 20 minutes every time I compile in Release config after a modification or for loading each of the three localisation languages for the form in the form designer. Then not only the IDE gets blocked, but also everything else on the machine (2 GHz machine with 512 Mb, same is true with a Centrino 1.6 GHz with 512 Mb). It is the "devenv.exe" process that uses 100% processor resources during all this time.


How long does your project take to compile under "normal" conditions? Is
the IDE just hanging in those 20 minutes or is the compiler actually
working on something?

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 17 '05 #2
Hello,

Thanks for the input on the KB article. I will try this right away.

I have performed further tests concerning the build:

When compiling in Debug configuration (after having performed a "Clean"),
it takes 18 seconds.

When compiling in Release configuration (after having performed a "Clean"),
it takes 9 minutes. I was not totally right concerning this case. This is the
"cl.exe" process that takes 100% of the processor resources in this case.
Everything is therefore very slow but the IDE is not blocked and the animated icon for "Build" that appears in the task bar of the IDE rolls its animation in a regular way.

However, if I change anything to one of the forms that are long to load, the
build takes a lot longer time.

Thanks for the help.
""Tarek Madkour [MSFT]"" wrote:
I am experiencing extremely long time for loading a windows form in my

Visual C++ .NET project.
This Windows form has just 40 labels, 4 checkBoxes, 2 buttons and 11

numericUpDown.
It takes several minutes to load this form in the form designer when I

double click on the .h
file in the Visual Studio .NET Solution Explorer. It gets worse with

another form that has
more controls.


The KB article (Q832138) at http://support.microsoft.com/?id=832138
describes a QFE that fixes this problem.
It gets really dramatic when I try to compile in Release configuration

(compilation
in Debug configuration is fine) or when I select another language to

localise the form with the
form designer. That can take up to 20 minutes every time I compile in

Release config after a modification
or for loading each of the three localisation languages for the form in

the form designer.
Then not only the IDE gets blocked, but also everything else on the

machine (2 GHz machine
with 512 Mb, same is true with a Centrino 1.6 GHz with 512 Mb). It is the

"devenv.exe" process
that uses 100% processor resources during all this time.


How long does your project take to compile under "normal" conditions? Is
the IDE just hanging in those 20 minutes or is the compiler actually
working on something?

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 17 '05 #3

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

Similar topics

5
by: No_Excuses | last post by:
All, I am interested in reading the text of a web page and parsing it. After searching on this newgroup I decided to use the following: ******************************* START OF CODE...
1
by: Fabricio Tofoli | last post by:
Hello all, I have a simple ASP.NET project that displays the contents of a MySql database table in the web page. All pages are extremelly slow, and not only the first time you access them, it's...
6
by: Jrsmith | last post by:
I am developing a mdi application that will act as a front end to a database. I am finding that when i show any of the mdi child forms in my application it is noticeable that the form is shown...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
5
by: lazyvlad | last post by:
Hi, I'm writing here because this issue is becoming more annoying with each day it passes. So I have a form, a dataset with a few table adapters (3 to be precise) and a datagridview.The datagridview...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.