Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
System.IndexOutOfRangeException
posted

Hi I received that exception and seeing the stack trace I don't understand what could be the source of that issue.

 

Regards,

Dominik

 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.FieldList.Contains(Field field)
   at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.FieldList.Remove(Field field)
   at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.RecordFieldList.Remove(Record record, Field field)
   at Infragistics.Windows.DataPresenter.AutoSizeFieldLayoutInfo.OnFilterCellChanged(FilterCell cell)
   at Infragistics.Windows.DataPresenter.FilterCell.NotifyAutoSizeInfo()
   at Infragistics.Windows.DataPresenter.FilterCell.OnFieldFilterInfo_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   at Infragistics.PropertyChangeNotifier.OnPropertyChanged(String propertyName)
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.FieldFilterInfo.VerifyRecordFilter()
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.FieldFilterInfo.VerifyHasActiveFilters()
   at Infragistics.Windows.DataPresenter.FilterCell.VerifyHasActiveFilters()
   at Infragistics.Windows.DataPresenter.FilterRecord.VerifyActiveFilters()
   at Infragistics.Windows.Internal.PropertyValueTracker.InvokeHandler()
   at Infragistics.Windows.Internal.PropertyValueTracker.ProcessTargetChanged()
   at Infragistics.Windows.Internal.PropertyValueTracker.OnTargetChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.BumpVersion()
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.OnSourceFiltersChanged()
   at Infragistics.Windows.Internal.PropertyValueTracker.InvokeHandler()
   at Infragistics.Windows.Internal.PropertyValueTracker.ProcessTargetChanged()
   at Infragistics.Windows.Internal.PropertyValueTracker.OnTargetChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
   at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
   at System.Collections.ObjectModel.ObservableCollection`1.OnPropertyChanged(PropertyChangedEventArgs e)
   at Infragistics.Windows.DataPresenter.RecordFilterCollection.BumpVersion()
   at Infragistics.Windows.DataPresenter.RecordFilterCollection.ResumeVersionNotifications(Boolean raiseNotification)
   at Infragistics.Windows.DataPresenter.RecordFilterCollection.VerifyFields()
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.VerifyRecordFilterFieldsHelper()
   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.MeetsCriteria(DataRecord record, RecordFilter ignoreFilter, Boolean populatingFilterDropDown)
   at Infragistics.Windows.DataPresenter.DataRecord.ApplyFiltersHelper(ResolvedRecordFilterCollection filters, Boolean raiseNotifications)
   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.EnsureFiltersEvaluated()
   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.Verify()
   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.get_ScrollCount()
   at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.get_Count()
   at System.Windows.Data.ListCollectionView.get_InternalCount()
   at System.Windows.Data.ListCollectionView.get_IsEmpty()
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshOrDefer()
   at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaiseCollectionChangedHelper(NotifyCollectionChangedEventArgs eventArgs)
   at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaiseChangeEvent(EventArgs e, Boolean async)
   at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaisePendingNotifications()
   at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaisePendingNotificationsCallback()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Parents
  • 138253
    Offline posted

    Hello Dominik,

     

    Thank you for your post. I have been looking into it and since this is not a known issue, I cannot be completely sure what can cause this exception, so could you please send an isolated sample project, where this is reproduced, so I can investigate it further for you.

     

    Looking forward for your reply.

Reply Children