Windows does not unload dll files a program has used after it has been closed, to speed up a possible restart of the program.


Use Regedit to edit: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer Add the DWORD value named: AlwaysUnloadDLL and set it to 1

Recommended Answers

Thanks for this. However, what advantage does unloading DLLs have? Does it free up RAM?

Jump to Post

All 4 Replies

Thanks for this. However, what advantage does unloading DLLs have? Does it free up RAM?

Yes .. the programs use dll libraries but they are not automatically unloaded ... taking a pretty much amount of ram .. only for users who dont restart programs frequently( frequently means a lot of times in one session).

how to unload dll:

I use warecase XTM. Very efficient tool to unload dll and to control other internal processes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.