We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

IndexOutOfRangeException when data changed in underlying DataTable

Thread ID:

Created:

Updated:

Platform:

Replies:

100660 Aug 23,2011 07:08 AM Sep 21,2011 11:04 AM ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Liu Yang
Asked On August 23, 2011 07:08 AM

Hi,

From the call stack below, the exception comes from Syncfusion.Grouping. Unfortunately the issue cannot be reproduced easily, it only happened once.

I am not sure if this is a problem of syncfusion library or some bug in my code(probably threading issue).

I am using an old version of syncfusion grid (6.102.0.34).

Any help is much appreciated.

Thanks
Jimmy


System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.ArrayList.Add(Object value)
at Syncfusion.Grouping.Table.AddChangedField(ChangedFieldInfo ci)
at Syncfusion.Grouping.Table.igcc_ColumnChanging(Object sender, GroupingColumnChangeEventArgs e)
at Syncfusion.Grouping.DataTableList.dt_ColumnChanging(Object sender, DataColumnChangeEventArgs e)
at System.Data.DataTable.OnColumnChanging(DataColumnChangeEventArgs e)
at System.Data.DataRow.set_Item(DataColumn column, Object value)
at System.Data.DataRow.set_Item(String columnName, Object value)


Asarudheen S [Syncfusion]
Replied On September 6, 2011 10:12 AM

Hi Jimmy,

Thank you for your interest in Syncfusion products.

Is there any possible way for you to provide us with a sample that shows this issue? . It will be easier for us to have a closer look into the problem and to resolve it. Thanks for providing additional information any.

Regards,
Asarudheen.


Liu Yang
Replied On September 14, 2011 04:23 AM

Hi Asarudheen

Unfortunately I couldn't reproduce the issue with a sample project. The exception happens randomly, I guess it's due to frequent data updates for the bounded DataTable.

May I know where changedFieldsArray is getting cleared?

changedFieldsArray is in Syncfusion.Grouping.Table

cheers
Jimmy




Liu Yang
Replied On September 14, 2011 06:04 AM

ChangedFieldArray is an ArrayList

I googled that the exception will happen when TrimToSize() and Add() are called on separate threads.


Asarudheen S [Syncfusion]
Replied On September 21, 2011 11:04 AM

Hi Liu ,

Thanks for the update.

It is hard to trace why this issue is arising without seeing the sample. We have searched our support database for any such similar issues, and found no similar issues found.


Is there any possible way for you to provide us with a sample that shows this issue? It will be easier for us to have a closer look into the problem and to resolve it. Thanks for providing additional information any.

Regards,
Asarudheen.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;