-
Notifications
You must be signed in to change notification settings - Fork 139
Description
Every time i switch between active and passive states (or vica versa) the application crashes. This happens no matter whether I stop the search activity or not,
The error is as follows
File Advertisement_viewmodel.cs
Namespace BluetoothLEExplorer.ViewModels
Function private void Advertisements_MapChanged(Windows.Foundation.Collections.IObservableMap<string, ObservableBluetoothLEAdvertisement> sender, Windows.Foundation.Collections.IMapChangedEventArgs @event)
Line 253 foreach (var advertisement in AdvertisementsView)
error message is
System.InvalidOperationException
HResult=0x80131509
Message=Collection was modified; enumeration operation may not execute.
Source=
StackTrace:
I am running the application in debug on a windows 10 22H2 OS. previously I used the store app with the same behaviour/result.
Should you need any more information please let me know