Index is less than 0 or more than or equal to the list count

View: New views
2 Messages — Rating Filter:   Alert me  

Index is less than 0 or more than or equal to the list count

by neilkonitzer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is anyone aware of any issues with the System.Collections class that requires code work-arounds? I have an ASP.NET application that works fine in Windows. However, running in Mono, I get the following exception in three different places. In one situation, I am simply deleting a record from a data grid. In another, I am making changes to a datatable. The problem appears to be isolated to System.Collections.ArrayList.get_item. Here is the pertinent stack trace:

Thanks in advance!

System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
-1
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00032] in /tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System.Collections/ArrayList.cs:2645

Neil Konitzer
Freisoft Consulting Services, Inc.

Re: Index is less than 0 or more than or equal to the list count

by gertdriesen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Neil,

Please create a standalone repro for this issue, and submit a bug report.

Gert

-----Original Message-----
From: mono-list-bounces@...
[mailto:mono-list-bounces@...] On Behalf Of neilkonitzer
Sent: dinsdag 2 september 2008 21:00
To: mono-list@...
Subject: [Mono-list] Index is less than 0 or more than or equal to the list
count


Is anyone aware of any issues with the System.Collections class that
requires
code work-arounds? I have an ASP.NET application that works fine in Windows.
However, running in Mono, I get the following exception in three different
places. In one situation, I am simply deleting a record from a data grid. In
another, I am making changes to a datatable. The problem appears to be
isolated to System.Collections.ArrayList.get_item. Here is the pertinent
stack trace:

Thanks in advance!

System.ArgumentOutOfRangeException: Index is less than 0 or more than or
equal to the list count.
Parameter name: index
-1
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00032] in
/tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System.Collections/Ar
rayList.cs:2645

Neil Konitzer
Freisoft Consulting Services, Inc.
--
View this message in context:
http://www.nabble.com/Index-is-less-than-0-or-more-than-or-equal-to-the-list
-count-tp19276278p19276278.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list