Replies: 1 comment 6 replies
-
Neither |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There seems to be an issue with thread safety in BindableCollection.
When two threads modify the collection at the same time, one calling ClearItems, the other calling RemoveItem, it can cause
OnCollectionChanging
to throw an exception.Example timeline:
collection.ClearItems()
Execute.OnUIThreadSync
collection.Remove(firstItem)
, this callsRemoveItem
withindex
argument set to0
base.ClearItems()
Execute.OnUIThreadSync
OnCollectionChanging
because the item at index 0 does not exist anymoreBeta Was this translation helpful? Give feedback.
All reactions