The Windows® 7 operating system may keep dynamic-link libraries in memory while you work with them. You can add a key into the Windows® registry that will automatically unload the DLLs if the system doesn’t need them. This operation needs a little orientation in the Windows® registry, so if you aren’t skilled enough to create a new registry key, be very careful. Using the instructions below you can learn detailed information on how to do this, step by step.
Creating a registry key for unloading DLLs:
- Click on the “Start” button. Then, type “regedit” into the search box and press “Enter”.
- Browse the registry tree until you reach this location: “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion”
- Click “Edit > New > DWORD (32bit Value)” in the main navigation bar.
- Name it “AlwaysUnloadDLL”.
- Double-click the created key. Enter value data “1” and click on the “OK” button.
- Close the Registry Editor.