Ryan's District Boards

Computer, programming, and webmaster help , support , tips and tricks => Internet webmaster computer programming technology tips and tricks => Topic started by: ben2ong2 on September 30, 2006, 06:05:46 PM

Title: Do You want Windows to unload dll immediately?
Post by: ben2ong2 on September 30, 2006, 06:05:46 PM
Folks, I read about this a long time ago and my preliminary findings are that it works on XP as well even though I can not say how beneficial this trick is (or how damaging !). Also there might be some potential problems with a a few apps. But I would still provide it to You There is a way in registry for You to tell Windows OS to unload DLL,immediately as soon as its use is over. Here is how to do that: . Open Registry by going to START-RUN and entering REGEDIT and Navigate to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer] and look for AlwaysUnloadDLL parameter. It may not be present by default. If not, add a key by the name AlwaysUnloadDLL and set it to value of 1.This would inform OS to unload the DLL files from memory immediately. This has its advantages and disadvantages. It may also crash some Microsoft applications (like Access).