-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to make GC issues with
ListProxy
consistent (#13973)
Updates MultiPage tests to ensure that ListProxy collection changed handler issues show up consistently (rather than only showing up intermittently on release builds). Fixes weak reference issue with ListProxy's collection changed handler. The ListProxy is creating a WeakNotifyCollectionChangedProxy using a method group; there's no other reference to the generated delegate, so if the GC kicks in the delegate is collected and the collection changed handler no longer fires. This PR creates a reference to the delegate in ListProxy so the delegate isn't collected.
- Loading branch information
Showing
2 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters