Skip to content

Advertisement monitor form application crash ... repeatable #74

Description

@KarlBrennan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions