sodcalculator

10 Tech How-To

Fix Microsoft Visual C++ Runtime Library Error in Windows 10

Guide 10-7368 · Updated · Step by step

The Microsoft Visual C++ Runtime Library error on Windows 10 usually appears as a pop-up saying “Runtime Error! Program: … This application has requested the Runtime to terminate it in an unusual way.” You can fix it by repairing or reinstalling the Visual C++ Redistributable packages, updating Windows, or running the program as an administrator. Below are the most effective solutions, starting with the quickest ones.

What Causes the Runtime Library Error?

The error occurs when a program that depends on the Microsoft Visual C++ Redistributable cannot find the required runtime DLL files (like msvcp140.dll or vcruntime140.dll), or when those files are corrupted, outdated, or conflicting with another version. Many Windows applications—especially games, photo editors, and development tools—are built with C++ and rely on these shared libraries. When the runtime is missing or broken, the program crashes with the runtime error.

Common triggers include:

  • An incomplete or failed Windows Update that replaced runtime files.
  • Installing a new program that overwrote a newer runtime with an older one.
  • Malware or a disk error corrupting DLL files.
  • Running a 32-bit program on a 64-bit system without the 32-bit runtime installed.

Solution 1: Repair the Visual C++ Redistributable

The most direct fix is to repair the installed redistributable packages. Windows 10 includes a built-in repair option for these packages.

  1. Open Settings > Apps > Apps & features.
  2. Search for “Microsoft Visual C++” in the list.
  3. Select the version that matches the program (usually the latest, like 2015-2022).
  4. Click Modify and choose Repair.
  5. Restart your PC and try running the program again.

If you see multiple versions (2010, 2013, 2015, etc.), repair all of them. Some programs require a specific version, so repairing all ensures no gaps.

Solution 2: Reinstall the Visual C++ Redistributable

If repairing doesn’t work, uninstall and reinstall the packages. This is especially effective when the runtime files are missing or corrupted beyond repair.

  1. In Apps & features, uninstall every “Microsoft Visual C++ 20xx Redistributable” entry.
  2. Restart your PC.
  3. Download the latest supported Visual C++ Redistributable from Microsoft’s official website (search “Visual C++ Redistributable latest supported downloads”).
  4. Install both the x64 and x86 versions—even if your system is 64-bit, many programs are 32-bit and need the x86 runtime.
  5. Restart again and test the program.

Solution 3: Update Windows 10

Microsoft regularly updates the Visual C++ runtime as part of Windows Update. An outdated system may have a runtime that’s missing security patches or compatibility fixes.

  1. Go to Settings > Update & Security > Windows Update.
  2. Click Check for updates and install all pending updates.
  3. Restart your PC.

This also ensures that the runtime files are the latest versions, which often resolves compatibility issues with newer programs.

Solution 4: Run the Program as Administrator

Sometimes the runtime error occurs because the program lacks permission to access certain system files or registry keys. Running it with elevated privileges can bypass this.

  1. Right-click the program’s shortcut or executable.
  2. Select Run as administrator.
  3. If that works, set it permanently: right-click > Properties > Compatibility tab > check Run this program as an administrator.

Solution 5: Check for Corrupted System Files

If the runtime files are fine but the system itself has corruption, the error may persist. Use the System File Checker (SFC) and DISM tools.

  1. Open Command Prompt as administrator (search “cmd”, right-click, run as admin).
  2. Run sfc /scannow and wait for it to finish.
  3. Then run DISM /Online /Cleanup-Image /RestoreHealth.
  4. Restart your PC.

These commands repair system files that might be interfering with the runtime.

Solution 6: Reinstall the Problematic Program

If the error is tied to a specific application, reinstalling that program can restore the correct runtime version it needs. Uninstall the program from Apps & features, then download the latest installer from the official source and reinstall it. This often replaces any missing or mismatched runtime DLLs that the program installed in its own folder.

Frequently Asked Questions

What does “Runtime Error!” mean?

It means the program tried to execute a command that the runtime library couldn’t handle, often because a required DLL is missing or the program tried to access memory incorrectly. It’s not a virus, but it can be caused by one.

Is it safe to uninstall all Visual C++ Redistributables?

No, don’t uninstall them all at once. Many programs rely on specific versions. Uninstall only the ones you’re repairing, and reinstall them immediately. If you remove all, many apps will stop working.

Why do I have so many versions installed?

Each version (2005, 2008, 2010, 2013, 2015-2022) is a separate package. Programs are compiled against a specific version, so they need that exact runtime. They coexist without conflict, so leave them all installed.

Will this fix the error for all programs?

No, not if the error is caused by a bug in the program itself, or by a missing dependency like DirectX or .NET Framework. If the fixes above don’t work, check the program’s own support forums or event logs for more specific clues.

Can I just download a single DLL file to fix it?

It’s not recommended. DLL files are version-specific and often need to be registered. Downloading from random sites is a common malware vector. Always use the official redistributable installer.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →