Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

problem! application slows down and registers exceptions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Igor Anic - 21 Sep 2004 10:05 GMT
I'm review-in an application and found large number on  (# of Excepts
Thrown) in .Net Performance counters, the value constantly raises (few
thousand per hour).

Further investigation of that exceptions shows that they are raised
somewhere in Datagrid control.
Changing the filter of the dataview (on which datagrid is bound)
registers exceptions in .Net counters. We could not catch that
exceptions in application, it is handled somewhere.

The reason why are we reviewing application is that it gets slower and
slower during running (I don't see memory problem so far).
Could the exceptions be the slowdown problem?
Any Experience?

Thanks,
Igor
Jason - 21 Sep 2004 18:16 GMT
You really did not really provide enough information to form a possible
reason for the exceptions.

At a minimum try to answer these (the more info the better) :

Is it a specific type of exception or just the general Exception class?
What is the message from the exception?
You said that changing the filter causes the exception. You really change
the filter several thousand times per hour?
Are new rows being added to the DataTable? (I have found that the DataTable
is not a very high performance object. When I constantly add hundreds of
rows per second to the table I start getting IndexOutOfBounds exceptions
from within the NewRow method of the DataTable.)

- Jason

> I'm review-in an application and found large number on  (# of Excepts
> Thrown) in .Net Performance counters, the value constantly raises (few
[quoted text clipped - 13 lines]
> Thanks,
> Igor
Igor Anic - 22 Sep 2004 09:11 GMT
> You really did not really provide enough information to form a possible
> reason for the exceptions.
[quoted text clipped - 3 lines]
> Is it a specific type of exception or just the general Exception class?
> What is the message from the exception?

I can't see exception it is probably handled somewhere in the framework.
The only place where I see that there are lot of exceptions is in the
.Net Performance Counters.

> You said that changing the filter causes the exception. You really change
> the filter several thousand times per hour?

I got 2 exceptions per filter change, and there are situations when
single click changes 3,4 or more dataview filters. I have clients
working working on the on line system and they like to have all
informations on the screen.

> Are new rows being added to the DataTable? (I have found that the DataTable
> is not a very high performance object. When I constantly add hundreds of
> rows per second to the table I start getting IndexOutOfBounds exceptions
> from within the NewRow method of the DataTable.)

I experience similar problems while adding rows to the table, but in
this situation I'm not adding rows just filtering.
Stoitcho Goutsev \(100\) [C# MVP] - 21 Sep 2004 19:20 GMT
Hi Igor,

I don't know of datagrid, but yes, the sometimes there axceptions thrown
inside the framework and respectively caught there and, yes, they slow down
the application. I've encountered couple of times such an internal
exception, but I have managed so far to prevent them, by doing more checks
on my side of the code.

Signature

Stoitcho Goutsev (100) [C# MVP]

> I'm review-in an application and found large number on  (# of Excepts
> Thrown) in .Net Performance counters, the value constantly raises (few
[quoted text clipped - 13 lines]
> Thanks,
> Igor

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.