DataView.FindRows out of range problem

R

Rami Prilutsky

I'm binding the dataView to a dataset (~400000 rows) and sorting it by a key
(long type).
I'm retrieving values from the DataView with FindRows(object key) which
returns DataRowView[].

The problem is that rarely on Stress modes I get the following error:

Source: mscorlib
Message: Index was out of range. Must be non-negative and less than the
size of the collection.
Parameter name: index


The error has no sense since i'm not searching with the index of the array,
so I suppose it's some FindRows inner exception.
Did anyone had encountered it?
 
R

Rami Prilutsky

I wish...
But I use .NET 2.0 and they talk about .NET 1.1


Kerry Moorman said:
Rami,

I wonder if this might apply to your situation:

http://support.microsoft.com/default.aspx?scid=kb;en-us;836874

Kerry Moorman


Rami Prilutsky said:
I'm binding the dataView to a dataset (~400000 rows) and sorting it by a
key
(long type).
I'm retrieving values from the DataView with FindRows(object key) which
returns DataRowView[].

The problem is that rarely on Stress modes I get the following error:

Source: mscorlib
Message: Index was out of range. Must be non-negative and less than the
size of the collection.
Parameter name: index


The error has no sense since i'm not searching with the index of the
array,
so I suppose it's some FindRows inner exception.
Did anyone had encountered it?
 

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

Top