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

Debugging slow application

Hi group,

I've got the following problem, a colleague has got an application that runs
real slow, it has a grid with about 28.000 records and ofcourse that will
cost him some speed, but the weird thing is from the grid form he opens a
detail form with a lot of controls on it (a tabcontrol with about 9 tabs all
containing textboxes, labels or his own usercontrols) , now with the
DevPartner Profiler Community Edition I "profiled" his app and initializing
the detail form took about 5.5 milion microseconds which I compared with one
of my applications and this is a normal number if you've got a lot controls
on your form. But the weird thing happend when disposing his detail form, it
takes about 15 milion microseconds and with my form (with almost the same
initialize time) it only takes 700.000 microseconds. So I guessed maybe it's
because he has a lot of controls on his tab, so I removed all controls from
all tabs except one control, I profiled the app again and the detail form
initialize time dropped to 1 milion microseconds, but his dispose allmost
dropped nothing, from 15 milion to 14.3 million. And an other weird thing my
colleague's application spends about 85% of it's time in SleepEx (a function
in Kernel32.dll) and my app spends 0.0 % of it's time in SleepEx. Anyone any
idea what could be causing this.

Greetz Peter and thanks for any hints or tips

PS: when I talk about initialize I mean the InitializeComponent() in public
sub new, and when I talk about dispose I mean MyBase.Dispose(disposing) in
Protected overloads Overrides sub Dispose(Byval Disposing as Boolean)
Nov 21 '05 #1
2 1184
Peter,

I assume that you/he never dispose(s) something yourself now?

In fact should dispose slow down your program when there are still enough
resources for other operations. (I have never seen figures about those
resources so a very abstract sentence).

Although that should be normally not recognisable time.

Cor
Nov 21 '05 #2
Hi,

Cor,

the datasets, connection and dataadapters he uses are disposed automaticaly
in our framework so they shouldn't cause a problem, for the rest he doesn't
explicitly dispose anything. Have you got an idea what could be causing the
long dispose and his program spending +80% in sleepEx or could this be
caused by the slow dispose?

Greetz Peter

"Cor Ligthert" <no************@planet.nl> schreef in bericht
news:eP**************@TK2MSFTNGP15.phx.gbl...
Peter,

I assume that you/he never dispose(s) something yourself now?

In fact should dispose slow down your program when there are still enough
resources for other operations. (I have never seen figures about those
resources so a very abstract sentence).

Although that should be normally not recognisable time.

Cor

Nov 21 '05 #3

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

Similar topics

5
by: Will McGugan | last post by:
Hi, On my dev machine (P4 1.7Ghz Win2K) debugging with Komodo is painfuly slow. There is a delay of several seconds when stepping over a single line of code. Debugging the same code with...
11
by: Gustavo Franco | last post by:
Hi, I did a medium complex application in C#, and in some areas the memory goes up to 60Mb, when I finish I dispose everything and setting everything to null and calling GC.Collect, but the...
0
by: John Socha-Leialoha | last post by:
I've been working on an ASP.NET application for a while. Debugging was really fast. But then the debugging started to slow down. When it got to the point where it took 5 seconds to step from line...
1
by: Jeffrey Roughgarden | last post by:
I wonder if anyone has any tips to improve Visual Studio's debugging performance? I have a 20 page web app that takes 90 or more seconds to bring up the logon page after I hit F5. Start without...
20
by: krypto.wizard | last post by:
Is there any editor or IDE in Python (either Windows or Linux) which has very good debugging facilites like MS VisualStudio has or something like that. I like SPE but couldn't easily use winPDP....
3
by: Andrew Ducker | last post by:
I have an application that has to take numerous different command line options. I wrote an app launcher to call into it (by creating a process, setting the filename/arguments and then starting...
4
by: yuanliu1 | last post by:
Hi, I am debugging my code of visual c++ 6.0. I found it is extremely slow to run after the code is compiled as "debug" mode and OK as "release mode", I would say the difference is around 10x....
2
by: KUTTAN | last post by:
My .net web application became very slow on debugging (it was working fine) I have installed the exe described in the post...
4
by: Will | last post by:
Hi Everyone, I have been having a bizarre problem when I do Run Without Debugging (I have been doing this do to the intensity of some code which runs slow when Debugging). When I run without...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.