It was like an episode of Outrageous Police Chase Videos. Under my PC's hood, deep in a Windows folder, dozens of DLL files were wildly pursuing one another, careening out of control and smashing into my hard drive. After each collision, my system would shudder and crash. And I'd end up staring at a lovely blue screen with an ugly Windows error message.
I'll bet you've had the same problem. Unexpected crashes are a sure sign something's wrong under the hood--something far worse than a bad gasket on your search engine. The culprit is almost always a faulty DLL. Don't sweat it. I have a way to get you out of a DLL traffic jam.
Trial By File
First, a few basics. Dynamic link libraries (aka DLLs) are small programs used by Windows applications. Some DLLs are needed by specific programs and rarely cause problems. Others--the usual DLL troublemakers--are part of Windows itself and are shared by many programs. For instance, commdlg.dll, a "common dialog" DLL, enables other programs to create dialog boxes.
The problem? Some programs dump their own versions of these DLLs--usually outdated, crotchety ones--onto your system. When you launch the program, it loads the old DLL. Even when you quit the app, that DLL hangs around in memory. Later that day, you load another program that uses the same DLL--only a more recent version of it--then wham! The new app gets rear-ended by the old DLL, road rage ensues, and the bits hit the fan.
Windows 98 is supposed to sort out these conflicts whenever you install a new program, comparing DLLs and throwing out the older ones. Trouble is, this does not always happen.
Fortunately, you can get rid of old DLLs yourself. It's a relatively safe task, but even so, back up your system first.
The trick is to search for all the DLLs on your hard disk, find the duplicates, and nuke the prior versions. You can do this by going to the Windows Desktop, hitting F3 to bring up the Find: All Files box, and searching My Computer for all files ending in .dll. (Be sure to search your entire drive, including subfolders.) In the results window, select View, Details and click the Name column heading to sort the files. If your PC is like mine, your drive is filled with duplicate DLLs. Depressing, no?
Now right-click each duplicate file, select Properties, and click the Version tab. The file with the higher version number should be in the \Windows\System folder. If the DLL with the lower version number is in the app's program folder, change its file extension to .d_l. That way, the old version won't load, which will force the program to look in the System folder for the right DLL. (The one place you should see many duplicate DLLs is in your \Windows\Sysbckup folder. Leave those alone.)
Last step: Reboot your PC and load the program that used the older DLL. If it runs, it's probably okay, and you can repeat the process with the next pair of duplicates. If it doesn't run, then restore the original name of the old DLL.
Never a DLL Moment
If all that sounds too complicated, consider getting an application like DLLChecker that'll do the job for you. The program, written by my user group buddy David Jung, scans your PC for DLLs, VBXs, OCXs, and VXDs (say that three times, fast). Then it lists their location and identifies them by size, date, and version. That helps you see the duplicates, compare the versions, and decide which ones to dump. The utility can also archive old DLLs.
I played with an early beta of DLLChecker, and it worked fine. The $10 program should be available at www.VB2Java.com or on FileWorld by the time you read this.
Premiering next month on Bass-TV: World's Scariest Windows Error Messages.
|
Would you recommend this story? YES NO
-
Speed Up Everything!
PCWorld shows you the secrets to improve performance on all your hardware.
-
Become an Android authority
Play music or games, run productivity apps and essential utilities.
- Windows Tips: Fix Windows Glitches by Re-registering Your DLLs
- Is it Okay to Uninstall 'Extra' Versions of Microsoft Visual C++?
- Why You Should Keep Data Folders in Your Root Directory
- Change What Application Loads When You Select a File
- How to Disable Windows Startup Programs
- How to Max Out Your Windows Performance for $1000
-
ThinkPad Edge E420 Lenovo Style in an Affordable Package
Buy now direct from Lenovo -
ThinkPad X220 Fast and light, with great input ergonomics and battery life, this powerhouse ultraportable is best-of-breed.
Buy now direct from Lenovo -
ThinkPad X120e One of the best netbooks ever, X120e has the best netbook keyboard ever--nothing else comes close
Buy now direct from Lenovo
- The Cloud, Day 24: Backing Up Your Cloud I have a lot of photos, videos, and other personal information stored on my social networks. Today I explore some options to backup and protect my social media accounts.
- Minecraft Developers Creating a Game in One Weekend Mojang are creating a game in record time this weekend and donating the proceeds to charity.
- Amazon Rockets to Second Place in Tablet Market, iSuppli Says Apple continues to dominate, but Amazon's Kindle Fire is doing very well.
- Mountain Lion Brings Mobile UI to Desktops Apple's latest OS X, Mountain Lion, looks more like iOS than anything.
- 12 Criteria for Selecting the Best ERP System Replacement An ERP system is your information backbone and reaches into all areas of your business and value chain. Replacing it can open unlimited business opportunities. This white paper explains the 12 criteria that allow you to identify and select the solution that will meet these expectations.
- Leveraging Social Computing Technologies for ERP Applications This white paper details how Web 2.0 technologies support business strategies by improving efficiency, productivity, and collaboration.











