Open your registry and find the key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer].
Create a new sub-key named 'AlwaysUnloadDll' and set the default value to equal '1' to disable Windows holding the DLL in memory.
Restart Windows for the change to take effect.
Key:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AlwaysUnloadDLL]
Value Name: Default
Data Type: REG_SZ
Data:(1 = enable)




