Skip to content
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

AssemblyLoadContext - Assemblies with WPF Window Cannot Be Unloaded #6247

Open
ryan-weil opened this issue Mar 11, 2022 · 2 comments
Open

AssemblyLoadContext - Assemblies with WPF Window Cannot Be Unloaded #6247

ryan-weil opened this issue Mar 11, 2022 · 2 comments
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions
Milestone

Comments

@ryan-weil
Copy link

ryan-weil commented Mar 11, 2022

Problem description:
AssemblyLoadContext's unload method fails (does not garbage collect/unload the assembly) when the assembly has a WPF window. There is a thread about this issue here in the main dotnet runtime GitHub, but they recommended someone create a thread in the WPF GitHub .

@ryan-weil ryan-weil changed the title AssemblyLoadContext Cannot Unload WPF Assemblies AssemblyLoadContext - Assemblies with WPF Window Cannot Be Unloaded Mar 11, 2022
@lindexi
Copy link
Contributor

lindexi commented Mar 12, 2022

See #1764

@ryan-weil
Copy link
Author

ryan-weil commented Mar 12, 2022

See #1764

I see. Well, I hope this is planning to be fixed, because from what I understand at this point it would be accurate to say that there is physically no way to create GUI plugins that can be unloaded in any .NET UI Framework right now. Correct?

@gurpreet-wpf gurpreet-wpf added Enhancement Requested Product code improvement that does NOT require public API changes/additions and removed Untriaged Requires WPF team triage labels Mar 15, 2022
@gurpreet-wpf gurpreet-wpf added this to the Future milestone Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

No branches or pull requests

3 participants