Fix File Is Open in COM Surrogate Error in Windows
In this article
Yes, you can fix the 'file is open in COM Surrogate' error in Windows by restarting Windows Explorer, ending the problematic COM Surrogate process, or repairing corrupted system files. This error usually appears when previewing files in File Explorer, especially media files like images or videos, and occurs due to a conflict with the Windows process responsible for generating thumbnails. The fix involves safely terminating the stuck process and restoring system stability without data loss.
What You'll Need
- A Windows PC with administrator access
- Internet connection (if system file repair is needed)
- Patience to restart processes and wait for system responses
Step-by-Step
- Press Ctrl + Shift + Esc to open Task Manager directly. If the keyboard shortcut doesn’t work, press Ctrl + Alt + Delete, then select Task Manager.
- In Task Manager, click More details if you see a simplified view. This expands the window to show all running processes.
- Look through the list of processes for any named COM Surrogate or dllhost.exe. There may be more than one. Focus on the one using high CPU or memory, or any that appear unresponsive.
- Right-click the COM Surrogate process and select End task. Confirm if prompted. This will terminate the process but not harm your system, as Windows will restart it as needed.
- Wait a few seconds, then try reopening the folder where the error occurred. The thumbnails may take a moment to reload, but the error should be gone.
- If the error persists, restart Windows Explorer. In Task Manager, find Windows Explorer under the Processes tab. Right-click it and select Restart. This refreshes the desktop and File Explorer interface.
- If the issue is still present, open Command Prompt as administrator. To do this, press Windows + S, type cmd, right-click on Command Prompt, and select Run as administrator.
- In the Command Prompt window, type the following command and press Enter: sfc /scannow. This scans for and repairs corrupted system files, which may be causing COM Surrogate to malfunction.
- Wait for the scan to complete. It may take 15–20 minutes. If it finds and fixes errors, restart your computer and check if the problem returns.
- Optionally, disable thumbnail previews to prevent future issues. Open File Explorer, go to the View tab, click Options, then Change folder and search options. In the View tab of the dialog, check Always show icons, never thumbnails, then click OK.
Common Mistakes
One common mistake is ending the wrong dllhost.exe process. Not all instances are related to COM Surrogate—some support essential system functions. Always check the process description in Task Manager; the correct one often shows 'COM Surrogate' in the description field. Another error is skipping the administrator step when running sfc /scannow, which causes the scan to fail silently. Users also often forget to restart Windows Explorer after ending COM Surrogate, leaving File Explorer unresponsive. Finally, disabling thumbnails as a first step instead of a last resort can reduce usability, as thumbnails help identify media files quickly.
Tips
To reduce future COM Surrogate errors, keep your system updated with the latest Windows updates, as Microsoft often patches stability issues in background processes. Avoid installing third-party codec packs, which can conflict with Windows’ built-in media handling and trigger COM Surrogate crashes. If you frequently work with uncommon media formats, use dedicated software like VLC instead of relying on File Explorer previews. You can also monitor COM Surrogate behavior using Task Manager regularly—persistent high CPU usage may indicate a deeper issue with a specific file or codec. Lastly, consider running Dism /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt after sfc /scannow if system corruption is suspected.
Troubleshooting
If the error continues after following the steps, check for malware. Some malicious software disguises itself as dllhost.exe. Open Task Manager, right-click the suspicious COM Surrogate process, and select Open file location. Legitimate files are located in C:\Windows\System32\dllhost.exe. If it opens in another folder (like AppData or Temp), it may be malware—run a full system scan with Windows Security. If the file location is correct but the problem persists, try booting into Safe Mode and performing the sfc /scannow command there. If thumbnails still cause crashes, permanently disable them using the View options in File Explorer. For recurring issues after clean boots and scans, consider creating a new user profile—corrupted user settings can sometimes trigger COM Surrogate errors. As a last resort, perform a system restore to a point before the issue began, ensuring you don’t lose critical data.
Frequently Asked Questions
Is COM Surrogate a virus?
No, COM Surrogate is a legitimate Windows process used to run COM objects outside the main application. However, malware can sometimes mimic it using the same filename. Always verify the file location is in System32.
Can I disable COM Surrogate permanently?
No, you should not disable it permanently. It’s essential for thumbnail generation and other shell extensions. Disabling it may break File Explorer functionality.
Why does this error happen with certain folders?
The error often occurs in folders with many media files or unsupported file types. Corrupted files or incompatible codecs in those folders can cause the COM Surrogate process to hang.
Does ending COM Surrogate delete my files?
No, ending the process does not affect your files. It only stops the thumbnail preview generation temporarily. Your data remains safe.
Will fixing this improve system performance?
It can, especially if COM Surrogate was using excessive CPU. Resolving the error prevents unnecessary resource consumption and improves File Explorer responsiveness.
Do I need third-party tools to fix this?
No, Windows built-in tools like Task Manager and System File Checker are sufficient. Avoid third-party 'DLL fixers' as they can introduce more problems.