-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.ArgumentOutOfRangeException in LayoutAnchorableTabItem.OnMouseEnter line 189 #90
Comments
Just to be sure, you are referring to this line:
and the suggested fix is this, right(?):
|
Yes your right. I think there is a threading issue Back in the containerPane. |
yes, I understand that, but I thought its better to have at least a hot fix to avoid the crash rather than having it crashing ... one problem is that I cannot verify the problem as I don't have it (not even sporadic) so unless we get a bette chance to debug and fix it - I can't really do more than hot fixing this....? |
OK great, a hotfix would do it for now. |
This commit should hot fix this issue (soon to be released to Nuget) |
Received following issue:
Top-level Exception Type: System.ArgumentOutOfRangeException Message: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Source: mscorlib Stack Trace: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List
1.get_Item(Int32 index)at System.Collections.ObjectModel.Collection
1.get_Item(Int32 index) at System.Collections.ObjectModel.ObservableCollection
1.MoveItem(Int32 oldIndex, Int32 newIndex)at Xceed.Wpf.AvalonDock.Layout.LayoutGroup
1.MoveChild(Int32 oldIndex, Int32 newIndex) in F:\MyFiles\CSharp\00_GitHub\Avalondock\source\Components\Xceed.Wpf.AvalonDock\Layout\LayoutGroup.cs:line 116 at Xceed.Wpf.AvalonDock.Controls.LayoutAnchorableTabItem.OnMouseEnter(MouseEventArgs e) in F:\MyFiles\CSharp\00_GitHub\Avalondock\source\Components\Xceed.Wpf.AvalonDock\Controls\LayoutAnchorableTabItem.cs:line 189 at System.Windows.UIElement.OnMouseEnterThunk(Object sender, MouseEventArgs e)
Its a sporadic issue, which occurs when there is some load in our application.
We applied a hotfix with prechecking the indexes before executing
containerPane.MoveChild
if (newindex < containerPane.ChildrenCount && oldIndex > -1) { containerPane.MoveChild(oldIndex, newindex); }
The text was updated successfully, but these errors were encountered: