This guide walks you through the most common causes of Microsoft Visual C++ runtime errors on Windows and the exact steps to resolve them. You’ll learn how to repair the Visual C++ Redistributable packages, update Windows, and check for corrupted system files—fixes that work for most users without needing advanced technical skills.
What You’ll Need
- A Windows PC (Windows 10 or Windows 11)
- Administrator access (you’ll need to approve some steps)
- A stable internet connection for downloading updates
Step-by-Step
- Identify the exact error message. Write down the full error text, including any DLL names (like
msvcp140.dllorvcruntime140.dll) and the program that triggered it. This helps you choose the right fix. - Restart your computer. A simple reboot clears temporary glitches and releases locked files that can cause runtime errors. Save your work and restart.
- Run the program as administrator. Right-click the program’s shortcut and select “Run as administrator.” If it works, the issue is likely a permissions problem, not a broken runtime.
- Repair the Visual C++ Redistributable. Open Control Panel → Programs → Programs and Features. Find entries like “Microsoft Visual C++ 2015-2022 Redistributable (x64)” and “(x86)”. For each one, click “Change” (or “Repair”) and follow the prompts. Restart after repairing.
- Install the latest Visual C++ Redistributable package. Go to the official Microsoft download page for “Visual C++ Redistributable for Visual Studio 2015-2022” and download both the x64 and x86 versions. Run both installers, choose “Repair” if offered, and restart.
- Run Windows Update. Go to Settings → Update & Security → Windows Update (or Settings → Windows Update on Windows 11). Click “Check for updates” and install all pending updates, including optional ones. Restart.
- Run the System File Checker (SFC). Open Command Prompt as administrator (type “cmd” in Start, right-click, “Run as administrator”). Type
sfc /scannowand press Enter. Wait for the scan to finish, then restart. - Run DISM to repair system image. In the same Command Prompt, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This can take 15-30 minutes. Restart when done. - Reinstall the problem program. Uninstall the application that shows the error, then download the latest version from the official website and reinstall. This often replaces any missing or incompatible runtime files.
- Check for malware. Run a full scan with Windows Defender (Settings → Privacy & Security → Windows Security → Virus & threat protection). Malware can corrupt runtime files.
Common Mistakes
- Only installing the x64 version. Many programs are 32-bit and need the x86 (32-bit) redistributable. Install both.
- Deleting DLL files manually. Downloading a single DLL from a random site and placing it in System32 can cause more damage and is a common malware vector. Always use the official installer.
- Skipping the restart. Runtime files are loaded into memory; without a restart, the fix may not take effect.
- Ignoring Windows updates. Outdated Windows can break compatibility with newer runtime packages.
Tips
- Use the “Repair” option in the redistributable installer first—it’s faster than a full uninstall/reinstall.
- If the error appears only in one game or app, check that app’s official support page for known runtime issues.
- Keep a note of which redistributable versions you have installed. You can see them all in Programs and Features.
- If you’re on a corporate PC, contact your IT department—they may have a standard deployment of the runtimes.
Troubleshooting
If the error persists after following all steps:
- Check the Event Viewer. Press Win+X, select “Event Viewer,” go to Windows Logs → Application, and look for errors at the time the crash occurred. The details may name a specific DLL or module.
- Try a clean boot. Type
msconfigin Start, go to Services, check “Hide all Microsoft services,” click “Disable all,” then restart. If the error disappears, a third-party service is conflicting. Re-enable services one by one to find the culprit. - Update your graphics and audio drivers. Runtime errors can be triggered by outdated drivers, especially in games. Use the manufacturer’s website (NVIDIA, AMD, Intel, Realtek) rather than third-party updater tools.
- Check for corrupted system files again. Run SFC and DISM in that order (DISM first, then SFC) if you haven’t already. Sometimes a second pass catches what the first missed.
- Restore Windows to an earlier point. If the error started recently, use System Restore (type “rstrui” in Start) to roll back to a date before the problem began.
- As a last resort, reset Windows. Go to Settings → Update & Security → Recovery → Reset this PC. Choose “Keep my files” to reinstall Windows without losing personal data. This fixes nearly all runtime issues but is time-consuming.
Frequently Asked Questions
What exactly is a Microsoft Visual C++ runtime error?
It’s an error that occurs when a program tries to use a component of the Microsoft Visual C++ Redistributable package that is missing, corrupted, or incompatible. The runtime provides standard functions that programs rely on to run.
Why do I have multiple Visual C++ Redistributable versions installed?
Different programs were built with different versions of Visual C++. Each version has its own runtime files, so having several installed is normal and usually harmless. Don’t uninstall older ones unless you’re sure no program needs them.
Can I just download the missing DLL file from the internet?
No. Downloading DLLs from third-party sites is risky—they may be outdated, infected, or incompatible. Always use the official Microsoft redistributable installer, which installs all required files correctly.
Will this error damage my computer?
No, a runtime error itself won’t damage hardware or other software. It only prevents the specific program from running. However, ignoring it and continuing to use a crashing program could lead to data loss, so fix it promptly.
How long does the repair process take?
Most steps take under 10 minutes. The DISM command can take 15-30 minutes, and a Windows reset can take an hour or more. The basic repair (steps 1-5) usually resolves the issue quickly.
Do I need to uninstall old Visual C++ versions before installing new ones?
No. The newer redistributable packages are designed to be installed alongside older ones. They don’t conflict, and uninstalling old versions may break programs that still need them.
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
- Show User Library in macOS High Sierra & Sierra
- Device Manager Shortcut: Windows 10 Desktop
- How to Remove Forgotten Passcode from iPhone
- Fix Slow Wi-Fi Problem iPhone X: 9 Steps
- How to Check if a Candidate Accepts Crypto Donations
- How to Listen to Deleted Voicemails on iPhone