Microsoft Visual C++ Runtime Library error: what it means and how to fix it

The dialog is blunt: a title bar reading “Microsoft Visual C++ Runtime Library,” a “Runtime Error!” line, the path of a program, and not much else. It means the named program hit a fatal error inside the Microsoft C++ runtime it depends on, and chose — or was forced — to shut down. The program named in the dialog is where the problem lives; the runtime library is just the messenger.

What it means

Many Windows programs are built with Microsoft's C++ tools and rely on shared “Visual C++ Redistributable” packages installed on the PC. When the program does something the runtime can't recover from — corrupted data, a broken add-on, a damaged install — the runtime ends it and shows this dialog. Windows itself is usually healthy. One program, or its runtime packages, is not.

The usual causes, most common first

  1. The named program is damaged or mid-update — a failed update or partial install leaves it inconsistent with its runtime.
  2. Corrupted Visual C++ Redistributable packages — multiple versions (2005–2022, x86 and x64) coexist; one damaged set can affect every program that uses it.
  3. An add-on or plugin inside the program (browser toolbars historically, shell extensions, game mods) crashing the host.
  4. A conflicting program or service injecting itself into the app.
  5. Damaged system files underneath everything — less common, checked last with SFC.

The fix, in order

  1. Restart the PC and try again. Genuinely first: if the dialog doesn't return, it was a one-off corrupted state, not a broken install.
  2. Write down the program path in the dialog. Everything that follows targets that program, not Windows.
  3. Update or repair that program. Check the maker's site or the app's own updater for a newer version; if it's current, uninstall and reinstall it cleanly.
  4. Repair the Visual C++ Redistributables. Settings → Apps → Installed apps: for each “Microsoft Visual C++ … Redistributable” entry, choose Modify → Repair. Work through the list (both x86 and x64).
  5. If repair isn't offered or doesn't hold, reinstall the packages from Microsoft — the “Visual C++ Redistributable for Visual Studio” downloads on Microsoft's site. Install both x86 and x64 on 64-bit Windows; programs need the flavour they were built with, regardless of the OS.
  6. Test with a clean boot if one program still dies: run msconfig, hide Microsoft services, disable the rest plus startup items, restart, and test. If the error vanishes, a third-party service or startup item is the conflict — re-enable in halves to find it.
  7. Run the system file check as a last sweep: Command Prompt as administrator → sfc /scannow.
Do not download “runtime fixers,” DLL packs, or registry cleaners for this error. The legitimate sources are exactly two: the program's maker, and Microsoft for the redistributables. Anything else adds risk to a machine that already has one broken program.

If it still happens

Open Event Viewer → Windows Logs → Application and find the error at the dialog's timestamp; it names the faulting module. If the module belongs to a plugin or another product (an antivirus hook, an overlay, a shell extension), update or remove that product — the crashing program is the victim, not the cause.

Common questions

Which redistributable version is needed? The one the program was built with — which is why several versions coexist and all of them should be repaired, not just the newest. Removing old versions breaks older programs.

Is this error a virus? By itself, no. It's a program crashing through its runtime. Malware can cause crashes, but this dialog is far more often a damaged install or a bad add-on.

Related errors

“Terminate in an unusual way” · MSVCP140.dll missing · VCRUNTIME140.dll missing