problem! application slows down and registers exceptions

  • Thread starter Thread starter Igor Anic
  • Start date Start date
I

Igor Anic

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
 
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
 
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.
 
Jason said:
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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top