PC Review


Reply
Thread Tools Rate Thread

Debugging slow application

 
 
Peter Proost
Guest
Posts: n/a
 
      16th Mar 2005
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)


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      16th Mar 2005
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


 
Reply With Quote
 
Peter Proost
Guest
Posts: n/a
 
      16th Mar 2005
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" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET 2.0 debugging slow Michael Jackson Microsoft Dot NET 2 11th Nov 2007 05:53 PM
SLOW debugging of CF application with VS 2005 =?Utf-8?B?TWljaGFlbA==?= Microsoft Dot NET Compact Framework 2 17th Nov 2005 05:30 PM
Stepping through application while debugging is incredibly slow alex.agran@ppmamerica.com Microsoft Dot NET Framework 1 14th Dec 2004 02:31 PM
Debugging became really slow John Socha-Leialoha Microsoft ASP .NET 0 1st Dec 2004 06:21 PM
Debugging has become really slow ... Why and how can I fix this? Dean R. Henderson Microsoft ASP .NET 9 24th Oct 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 PM.