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

AssemblyResolver and memory mapped modules #9

Closed
yck1509 opened this issue Jul 12, 2014 · 1 comment
Closed

AssemblyResolver and memory mapped modules #9

yck1509 opened this issue Jul 12, 2014 · 1 comment

Comments

@yck1509
Copy link
Contributor

yck1509 commented Jul 12, 2014

By default, dnlib loads modules using memory mapped files. This requires the caller to explicitly dispose the module to unlock the file. However, there is no way to retrieve cached assemblies (as well as their modules) in an AssemblyResolver to dispose them.

@0xd4d
Copy link
Collaborator

0xd4d commented Jul 12, 2014

If you want to remove an assembly you yourself loaded and added to the cache, you could call IAssemblyResolver.Remove (or the extension methods), then call Dispose().

fca5ae7 added a Clear() method you can call to dispose of all cached modules.

@yck1509 yck1509 closed this as completed Jul 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant