473,614 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slow As Molasses


Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 26 '05 #1
11 1804
I have noticed that the first time that you open a .NET application that it
takes forever, but after the initial load it will load very quickly. The
Visual Studio .NET 2003 IDE is a perfect example. Restart your computer,
load VS.NET 2003 and see how long it takes to open. Closed VB.NET and start
if up again. Loads almost instantly.


"John Bailo" <ja*****@texeme .com> wrote in message
news:_c******** ************@sp eakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #2
Hi John,

It shouldn't take long. What does the second form do in the load event or
in the initialization?

Bernie Yaeger

"John Bailo" <ja*****@texeme .com> wrote in message
news:_c******** ************@sp eakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #3
John Bailo <ja*****@texeme .com> wrote:
Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!


WinForms in general is sluggish for me.
Jul 27 '05 #4
John Bailo wrote:
Or do Windows Forms run as slow as molasses?


I find that the first time the application loads, it is slow. But
thereafter, accessing a form that has been loaded before is fast. This
is inline with the way that WinForms and .NET was designed to work.

--
Derek Davidson
Take the S4N Poll
http://s4n.no-ip.biz/s4npoll/intro.aspx
Poll active until 31 July 2005
Jul 27 '05 #5
John - is there anything special happening when the form loads (ie making a
trip to the db to grab data)? If so, you may want to use a separate thread
or async delegate to increase the responsiveness of the UI. If that's not
the problem, it may well just be due to the inherent performance associated
with a managed runtime. Does this problem persist across the board or just
on a specific form or app?
"John Bailo" <ja*****@texeme .com> wrote in message
news:_c******** ************@sp eakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #6
> Is it me?
Or do Windows Forms run as slow as molasses?
I launch a child form from a parent and it takes ages to appear?

Why ?!?!

It depends on what you are doing in that loding phase of the form.
Only the first time, the loading is slow since the IL is compiled into
machine code on the fly the first time you use that part of the code. But
once loaded it should run near c++ speed, tests here suggests 5% slower on
average.

Unlike C++ unmanaged code (aka conventional exe code), the code is not
compiled and optimized at compile time at the developrs PC, but at the CLR
on the users machine, optimizing it for that machine. In theory in tim you
same program wil actually run faster when new versions of the .NET framework
gets distributed. No need of recompiling the source code.

One very nice side-effect in this is that you can create a neutral .NET
program, that will run as pure 32 bit when you run it on a 32 bit machine
and pure 64 bit on a 64 bit machine.Only one distributable exist in this
case. (see upcoming Visual Studio 2005 for this)
Jul 27 '05 #7
W.G. Ryan MVP wrote:
John - is there anything special happening when the form loads (ie making a
trip to the db to grab data)? If so, you may want to use a separate thread
or async delegate to increase the responsiveness of the UI. If that's not
the problem, it may well just be due to the inherent performance associated
with a managed runtime. Does this problem persist across the board or just
on a specific form or app?
Great idea...it's populating a combo box from a web method (connected to
a database)...so I'll thread that.

However, my impression from other forms in this app, that are not
database bound, is that they are slow.

I even broke out of VS.NET which I had been assuming was the reason that
the forms were so slow, and, using a version compiled for Release, and
found that they were slow.

"John Bailo" <ja*****@texeme .com> wrote in message
news:_c******** ************@sp eakeasy.net...
Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!


Jul 27 '05 #8
Timing should allow to narrow down possible problems. The next time you
could start with an empty form and time as you go so that you can see how it
evolves as you add components...
--
Patrice

"John Bailo" <ja*****@texeme .com> a écrit dans le message de
news:_c******** ************@sp eakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #9
John,

Hi guys, I am not a native English speaker, is Molasses that what is a very
good drinkable when you have distillate it?

I could not resist

:-)

Cor
Jul 27 '05 #10

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

Similar topics

2
3345
by: David | last post by:
Hi, We have an internal network of 3 users. Myself & one other currently have individual copies of the front-end MS Access forms and via our individual ODBC links we have used the: File > Get External Data > Link Tables > select ODBC Databases facility to link to our back-end MySQL Server. On both our machines the tables appear in the window very quickly and if we hit 'Select All', all the tables start loading really quickly into our...
5
2418
by: DFS | last post by:
Situation: Access 2003 front-end, containing links to Access 2003, SQL Server 2000, and DB2 tables. None of these tables are local. Hardware: IBM ThinkCentre, 10/100 Ethernet LAN Problem: Open a form or a report in Design mode, and bring up the Properties dialog. Now as I try to move from one Property to another, it's like Access is checking the entire recordsource of the form or report before moving the cursor focus. It literally...
0
2210
by: Celarian | last post by:
I've written a function, Despeckle, to remove noise from Bitmaps. The English description of the algorithm I've implemented might read as follows: For each pixel in the image, create an array which contains the color of that pixel and every adjacent pixel. Sort that array, and set the color of the corresponding pixel in the target bitmap to the median value of the array. My code fails in these respects:
11
367
by: John Bailo | last post by:
Is it me? Or do Windows Forms run as slow as molasses? I launch a child form from a parent and it takes ages to appear? Why ?!?!
50
5693
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
4
2146
by: Jules Winfield | last post by:
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....
3
9605
by: Michael | last post by:
I work with a highly programmed Access database (some 15,000 lines of VBA code, much of it automating data entry on forms -- and believe me, it's very tight code). In Access 97, 2000, 2002, and 2003, no performance problems. However, when I open the same database in Access 2007, it's as slow as molasses. Data trickles onto the form instead of an immediate display in Access 2003. This happens regardless of whether I keep the Access...
4
7580
by: Andrew Jackson | last post by:
I am writing a newsgroup client. I have the protocol figured out. But I get slow transfer speeds off any of the network objects read the data from For example one of the commands for a news client to use is "XOVER articlenumber-" This return string after string of all the news articles from article number on.... Another newsclient, i wont name names, pulls data down just fine. Using a
1
5079
by: Ted Kennedy | last post by:
I have an Access Data Project (.adp) connecting to a SQL Server 2005 DB over the internet. The project has been running in Access 2003 for a couple of years, and performance has been very good. When I convert it to Access 2007 (maintaining the 2002-2003 file format) it gets a LOT slower. It takes about 3-5 seconds just to tab to a new field. Everything seems to work, it's just as if it is moving in molasses. Any ideas on what could be...
0
8182
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8130
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,...
1
8279
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6088
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
5540
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
4052
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...
1
2568
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
1
1747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1425
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.