473,881 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4541
> 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
618
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 ************************ String sTemp = "http://cgi3.igl.net/cgi-bin/ladder/teamsql/team_view.cgi?ladd=teamknights&num=238&showall=1"; WebRequest myWebRequest = WebRequest.Create(sTemp); WebResponse myWebResponse = myWebRequest.GetResponse();
1
1589
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 slow every time... It seems the problem is not caused by server page generation... it really feels like the page is ready but the Response takes forever to get to the client. If I start loading the page and go to "View Source", I can see the
6
1992
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 first with the areas where the controls will be displayed cut out and what ever is top most before the form is shown is momentarity seen through these areas. This is also noticed if the user changes focus to say internet explorer and then back to...
9
2993
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 ... - preload the .net 2 framework (windows startup or whatever) - splash a screen ... application loading ... please wait ... type of
1
8376
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 instance of an object.'" I've traced the problem to a custom control I created that inherits from Inherits System.Windows.Forms.TextBox. In this custom control, I have two constructors. I'm not sure why I created the second constructor -- it was so...
5
2835
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 look for why it is slowing down. I thought about the DB first and added NOLOCK to a couple of stored procedures that were being run, but with no effect. Can someone offer some tips on where to start looking or how I can begin to diagnose this...
9
13050
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 Domain. We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion apps do not display such slowness on their first start up of the day. Is there a way to improve the load times of ASP.NET apps? I'm having to justify to my boss...
2
5572
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 serialization settings for the build handled the initial slows we encountered when invoking the web service. Since that time, we ported the original VB.net code over to C# - this was done to make it cleaner easier to include the project in the rest of...
5
4253
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 has a lot of columns as checkboxes (30 columns are checkboxes per row). The problem is in the form drawing and painting, when first shown the form paints itself very slow and im running this on a relatively powerful computer (Pentium 2.4GHz with...
0
9776
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11095
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10716
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10399
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7952
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7108
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5780
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.