I have a Page that subscribes to a message from the view model and dismisses itself when that message arrives. It also unsubscribes from that message in OnDisappearing. The problem seems to be that the message service is sending the message to my page which triggers the page to disappear and thus unsubscribe from the event, which causes the list of subscribers to change and the internal loop iterator to become invalid, resulting in an error about modifying the collection during a loop.
↧