© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2w ago•
2 replies
Olsson

Debugger preventing AssemblyLoadContext unload

advanced
My ALC unloads fine normally, but fails consistently after I've stepped through code with breakpoints. Unload() + GC just never completes unless I detach first.

I’ve ruled out the usual stuff (static refs, events, threads, GCHandles). Feels like the debugger is holding onto types/metadata once anything gets inspected.

Has anyone else run into this? Or might have a clue how to solve it?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Forcefully unloading AssemblyLoadContext
C#CC# / help
2y ago
AssemblyLoadContext LoadfromAssemblyPath vs LoadFromNativeImagePath
C#CC# / help
2y ago
NeoVim Debugger
C#CC# / help
7mo ago
AssemblyLoadContext not unloading if system.runtime.caching MemoryCache used inside ALC.
C#CC# / help
4y ago