The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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)
ASAsarudheen S Syncfusion Team September 6, 2011 02:12 PM UTC
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.
LYLiu YangSeptember 14, 2011 08:23 AM UTC
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
LYLiu YangSeptember 14, 2011 10:04 AM UTC
ChangedFieldArray is an ArrayList
I googled that the exception will happen when TrimToSize() and Add() are called on separate threads.
ASAsarudheen S Syncfusion Team September 21, 2011 03:04 PM UTC
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.