-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataContext not getting GC'd/Finalized #12123
Comments
Likely to be a duplicate of #8240, if automation was used in any way |
Reproduced with any automation turned off (like ms windows screen reader). @maxkatz6 i am currently working on this |
@flexxxxer I assigned you. If you decide to stop working on it, ping me. |
Fix DataContext not getting GC'd/Finalized. closes #12123
Fixed with #12430 |
@timunie i think you can close this issue |
@flexxxxer fyi in Fixed Issues, write Fixes #TheIssueNumber. "Fixes" and "Closes" are key words for Github. |
Discussed in #12109
Originally posted by nic547 July 9, 2023
Using the Avalonia .NET Core template, updating to Avalonia11 and editing the mainWindow like following:
After opening and closing new windows, I cannot observe the "ViewModel" getting finalized. Additionally a Memory Snapshot (VS) will reveal as many Instances of the ViewModel as Windows were opened, despite only one being open.
Is there something I need to do to properly "clean up" a closed window?
(Full code: https://github.com/nic547/AvaloniaRepro)
Edit: Does work as expected in 11 preview 8, but not in 11 rc1.1 and 11
The text was updated successfully, but these errors were encountered: