An attempt was made to change the selection while a selection-change process is already in progress.

Issue #85 resolved
Anonymous created an issue

Got this trying to delete unneeded directory with files in it.

<log4j:event logger="Romcenter" level="FATAL" timestamp="1520043813817" thread="1"><log4j:message>An attempt was made to change the selection while a selection-change process is already in progress.
   at Xceed.Wpf.DataGrid.SelectionManager.Begin()
   at Xceed.Wpf.DataGrid.SelectionManager.UpdateSelectionAfterSourceCollectionChanged(DataGridContext dataGridContext, NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.UpdateSelectionAfterSourceCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener&amp; listener, Object sender, EventArgs args, Type managerType)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.OnViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshInternal()
   at System.Windows.Data.CollectionView.RefreshOrDefer()
   at System.Windows.Data.CollectionView.set_Filter(Predicate`1 value)
   at System.Windows.Data.ListCollectionView.set_Filter(Predicate`1 value)
   at RomCenter.Logic.ViewModel.Datagrids.FilesViewModel.&lt;&gt;c__DisplayClass29_1.&lt;Update&gt;b__2() in C:\Projects\Romcenter\Logic\ViewModel\Datagrids\FilesViewModel.cs:line 180
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</log4j:message><log4j:throwable>System.InvalidOperationException: An attempt was made to change the selection while a selection-change process is already in progress.
   at Xceed.Wpf.DataGrid.SelectionManager.Begin()
   at Xceed.Wpf.DataGrid.SelectionManager.UpdateSelectionAfterSourceCollectionChanged(DataGridContext dataGridContext, NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.UpdateSelectionAfterSourceCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener&amp; listener, Object sender, EventArgs args, Type managerType)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.OnViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshInternal()
   at System.Windows.Data.CollectionView.RefreshOrDefer()
   at System.Windows.Data.CollectionView.set_Filter(Predicate`1 value)
   at System.Windows.Data.ListCollectionView.set_Filter(Predicate`1 value)
   at RomCenter.Logic.ViewModel.Datagrids.FilesViewModel.&lt;&gt;c__DisplayClass29_1.&lt;Update&gt;b__2() in C:\Projects\Romcenter\Logic\ViewModel\Datagrids\FilesViewModel.cs:line 180
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</log4j:throwable><log4j:NDC /><log4j:throwable><![CDATA[System.InvalidOperationException: An attempt was made to change the selection while a selection-change process is already in progress.
   at Xceed.Wpf.DataGrid.SelectionManager.Begin()
   at Xceed.Wpf.DataGrid.SelectionManager.UpdateSelectionAfterSourceCollectionChanged(DataGridContext dataGridContext, NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.UpdateSelectionAfterSourceCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Xceed.Wpf.DataGrid.DataGridContext.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener& listener, Object sender, EventArgs args, Type managerType)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.OnViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshInternal()
   at System.Windows.Data.CollectionView.RefreshOrDefer()
   at System.Windows.Data.CollectionView.set_Filter(Predicate`1 value)
   at System.Windows.Data.ListCollectionView.set_Filter(Predicate`1 value)
   at RomCenter.Logic.ViewModel.Datagrids.FilesViewModel.<>c__DisplayClass29_1.<Update>b__2() in C:\Projects\Romcenter\Logic\ViewModel\Datagrids\FilesViewModel.cs:line 180
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)]]></log4j:throwable><log4j:locationInfo class="RomCenter.Global.BaseLog" method="Void Fatal(System.String, System.Exception)" file="C:\Projects\Romcenter\Global\RcLog.cs" line="220" /><nlog:eventSequenceNumber>3239</nlog:eventSequenceNumber><nlog:locationInfo assembly="RomCenter.Global, Version=4.0.15310.16069, Culture=neutral, PublicKeyToken=null" /><nlog:properties /><log4j:properties><log4j:data name="log4japp" value="true" /><log4j:data name="log4jmachinename" value="ARCADE" /></log4j:properties></log4j:event>

Comments (3)

  1. Log in to comment