“COM Surrogate has stopped working” appears while you’re browsing photos or video files. A buggy codec or broken shell extension is almost always behind it. It’s worth a quick look before you start reinstalling things.
What is COM Surrogate?
COM Surrogate is dllhost.exe, a Windows host process that runs COM objects, thumbnail generators, media handlers, and codecs, outside of Explorer. The design is clever: if a codec crashes, Explorer keeps running rather than taking your whole desktop down. The error affects Windows 7 through Windows 11, and the fixes below apply to all of them.
Fix #1: Verify dllhost.exe is legitimate
Before trying anything else, confirm dllhost.exe is running from a system folder. A copy running from anywhere else is almost certainly malware.
- Press
Ctrl + Shift + Escto open Task Manager. - Find COM Surrogate or
dllhost.exein the Processes tab. - Right-click it and select Open file location.

The folder should be C:\Windows\System32 or C:\Windows\SysWOW64. If it opens anywhere else, a user profile, Temp folder, or AppData, run a full antivirus scan and a Malwarebytes scan before continuing with any other fix.
Fix #2: Use Reliability Monitor to identify the culprit
Reliability Monitor logs the exact DLL or program behind each crash. Checking it tells you which codec or software to update rather than guessing.
- Windows 7: Open Control Panel > System and Security > Action Center, then click Reliability Monitor.
Windows 10/11: Search for Reliability Monitor in the Start menu.
- Click View all problem reports at the bottom.
- Find a COM Surrogate or
dllhost.exeentry, right-click it, and choose View technical details. - Note the Fault Module Name, it usually identifies the crashing DLL or program directly.

Once you have a module name, Fix #3 gets very targeted.
Fix #3: Update or remove the problem codec or software
Codec packs, DivX, ffdshow, K-Lite, older Nero, older Adobe CS installs, are behind most COM Surrogate crashes. Update or uninstall whatever Reliability Monitor flagged.
- Press
Windows + Ito open Settings, then go to Apps > Installed apps.
On Windows 7: Open Control Panel > Programs and Features.
- Find the codec pack or media software in the list.
- Select it and choose Modify to update, or Uninstall to remove it.
- Restart your PC and test.

If multiple codec packs are installed, remove all of them, they conflict with each other regularly. One current, reputable package is far cleaner than stacking several older ones.
Fix #4: Re-register vbscript.dll and jscript.dll
Corrupt scripting DLL registrations break COM components that rely on them. This actually works on a surprising number of cases, and it takes about a minute.
- Press
Windowsand search for cmd. - Right-click Command Prompt and choose Run as administrator.
- Run these commands one at a time, pressing Enter after each:
regsvr32 vbscript.dll
regsvr32 jscript.dll
- A dialog should confirm registration succeeded for each DLL.
- Restart your PC.

These commands are identical on Windows 7 through Windows 11.
Fix #5: Run System File Checker
sfc /scannow scans Windows system files for corruption and replaces any damaged ones automatically.
- Open an elevated Command Prompt (right-click Command Prompt > Run as administrator).
- Type the following and press Enter:
sfc /scannow
- The scan takes a few minutes. Don’t close the window until it finishes.
- Restart and check whether the error returns.

Fix #6: Configure DEP to exclude dllhost.exe
Data Execution Prevention (DEP) can block dllhost.exe from running certain COM operations. Adding an exclusion, rather than disabling DEP entirely, is the right approach here. For more background, see our guide on how to turn off DEP in Windows.
- Press
Windows + R, typeSystemPropertiesAdvanced, and press Enter. - Under Performance, click Settings.
- Click the Data Execution Prevention tab.
- Select Turn on DEP for all programs and services except those I select.
- Click Add and browse to the correct path for your Windows version:
– 32-bit Windows: C:\Windows\System32\dllhost.exe
– 64-bit Windows: C:\Windows\SysWOW64\dllhost.exe
- Confirm any warning dialog, then click Apply > OK.
- Restart Windows.

Fix #7: Update or roll back your display driver
Display driver problems, especially around hardware-accelerated thumbnail generation, can crash COM Surrogate. If the errors started after a driver update, rolling back usually sorts it fast.
- Press
Windows + R, typehdwwiz.cpl, and press Enter to open Device Manager. - Expand Display adapters.
- Right-click your GPU and choose Properties.
- On the Driver tab:
– Click Roll Back Driver if crashes started after a recent driver update. – Click Update Driver > Search automatically if you haven’t updated recently.
- Restart and test.

Check Print queues in Device Manager while you’re there, outdated printer drivers occasionally trigger the same crash.
Fix #8: Check your antivirus exclusions
Some antivirus and internet security suites interfere with dllhost.exe, particularly when it reads files on external drives. If COM Surrogate crashes mainly when you plug in a USB drive or browse removable media, your security software is a likely suspect.
- Open your antivirus or internet security suite.
- Find the Exclusions or Exceptions settings.
- Add
C:\Windows\System32\dllhost.exeas an excluded process. - Re-test.
Temporarily disabling real-time protection and browsing a few pictures is a quick confirmation: if the error disappears with protection off, adding the exclusion will fix it permanently.
Fix #9: Run chkdsk on the affected drive
If the error only appears with files on one specific drive, a USB drive or external hard disk, bad sectors may be the trigger. See our guide on how to use the chkdsk utility for full steps.
When the Fixes Don’t Work
If nothing here clears it, a repair install is the next step. On Windows 10 and 11, go to Settings > System > Recovery > Reset this PC and choose Keep my files, this refreshes system files without removing your apps. On Windows 7, you’ll need installation media to run an in-place upgrade.
Conclusion
Fix #3 (removing a bad codec) clears this for most people, especially when Reliability Monitor has already named the offending DLL. Fix #4 is worth running right after, two commands, about a minute, and it handles a surprising number of cases. Bookmark this page if COM Surrogate keeps recurring; the display driver or antivirus exclusions are usually behind the repeat offenders. For more information on COM Surrogate, you can visit Microsoft’s documentation or check out Software Testing Help for additional troubleshooting steps.
