TipsForcing Windows to Unload DLLs from Memory
Windows Explorer caches DLLs (Dynamic-Link Libraries) in memory for a period of time after the application that is using them has been closed . This could be an inefficient use of memory on low memory systems, altogether it may cause problems or delays for programmers who are developing with Windows DLL files.
Registry Legend
System Key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL]
Value Name:
Default
Data Type:
REG_SZ (String Value)
Value Data:
(1 = enable)
|
||||||||||||||||||||||

User Comments
Windows does not effectively manage virtual memory. If you open and close a number of programs over time your memory, both real and virtual (swap file) will continue to grow until windows stops the system to expand the size of the swap file. If you examine the usage of your memory under these circumstances, you'll find that numerous .dll files are held up in memory for programs that are no longer running.
Getting un-used files out of memory frees up memory for programs that are actually running and requires less use of the swap file resulting in a faster system.
So that explains why loading one program the first time takes longer than the next times you try after shutting it down!
Wow! I can't believe it. We will look into this on Monday. Have a good weekend and a good new years
This process is known as caching. Caching has had a long and distinguished history in computer systems and it is highly developed in XP. XP has a complex and efficient system for reclaiming the memory used by caching - when it is needed. Until that time comes the memory will remain in use and working to improve performance.
The author is proposing that you interfere with a process he clearly does not understand.
Larry Miller
Microsoft MCSA