sodcalculator

10 Tech How-To

Fix Runtime Errors in Windows 11: Top Ways

Guide 10-48073 · Updated · Step by step

Runtime errors in Windows 11 can freeze apps, crash games, or even trigger the blue screen, but most are fixable by updating drivers, repairing system files, or adjusting compatibility settings. This guide covers the most effective methods you can try yourself, from quick restarts to deeper system repairs, before you consider a full reinstall.

What Causes Runtime Errors in Windows 11

A runtime error occurs when a program tries to execute an operation that Windows or the program itself cannot handle at that moment. Unlike a syntax error (which happens when code is written), a runtime error happens after the program starts. Common triggers include:

  • Outdated or corrupted drivers, especially graphics and chipset drivers.
  • Missing or incompatible Visual C++ Redistributables or .NET Framework components.
  • Corrupted system files from a failed update or disk error.
  • Insufficient memory or disk space when the app needs more resources than are available.
  • Conflicting background programs or services that interfere with the app.
  • Malware or antivirus false positives that block or modify program files.

Before You Start: Quick Checks

Before diving into advanced fixes, run these simple checks—they resolve a surprising number of runtime errors:

  1. Restart your PC. This clears temporary memory leaks and stops background processes that may conflict.
  2. Check for Windows updates. Go to Settings > Windows Update > Check for updates. Install all pending updates, including optional driver updates if offered.
  3. Verify the program is installed correctly. Reinstall the problematic app. Use the official installer, and choose “Repair” if that option is available.
  4. Ensure enough free disk space. Windows needs at least 20-30 GB free for virtual memory and temporary files.
  5. Run the app as administrator. Right-click the shortcut and select Run as administrator. If that works, set the app to always run as admin under Properties > Compatibility.

Update or Roll Back Drivers

Faulty drivers are a leading cause of runtime errors, particularly for games and graphics-heavy software. Windows 11 often installs generic drivers that may not support every feature of your hardware.

To update a driver:

  1. Press Win + X and select Device Manager.
  2. Expand the category (e.g., Display adapters).
  3. Right-click your device and select Update driver.
  4. Choose Search automatically for drivers. If nothing new is found, visit the manufacturer’s website (NVIDIA, AMD, Intel, Realtek, etc.) for the latest driver.

If the error started after a recent driver update, roll it back:

  1. In Device Manager, right-click the device and select Properties.
  2. Go to the Driver tab and click Roll Back Driver. This option is only available if a previous driver exists.

Repair System Files with SFC and DISM

Corrupted system files can cause runtime errors across multiple apps. Windows includes two built-in tools to find and repair these files.

  1. Open Command Prompt as administrator (search “cmd”, right-click, Run as administrator).
  2. Run sfc /scannow. This scans protected system files and replaces corrupted ones. It may take 10-20 minutes.
  3. If SFC finds issues it cannot fix, run DISM /Online /Cleanup-Image /RestoreHealth. This repairs the Windows image itself. Wait for it to complete (it may take longer), then run sfc /scannow again.

These commands are safe and do not delete personal files, though a restart is usually required after repairs.

Install or Repair Visual C++ and .NET Framework

Many runtime errors mention specific DLL files (like msvcp140.dll or vcruntime140.dll) or reference the .NET Framework. These are common dependencies for software built with Microsoft tools.

  • Visual C++ Redistributables: Download and install the latest “vc_redist.x64.exe” and “vc_redist.x86.exe” from Microsoft’s official site. Install both even if you have a 64-bit system, as many apps still rely on 32-bit versions.
  • .NET Framework: Go to Settings > Apps > Optional features and ensure “.NET Framework 3.5” and “.NET Framework 4.8+” are enabled. You can also download the offline installer from Microsoft.

After installing, restart your PC and try the app again.

Run the App in Compatibility Mode

If the runtime error occurs with an older program, Windows 11’s compatibility mode can emulate older Windows versions. This often fixes errors caused by deprecated API calls.

  1. Right-click the program’s shortcut or .exe file and select Properties.
  2. Go to the Compatibility tab.
  3. Check Run this program in compatibility mode for and select an older version (e.g., Windows 8 or Windows 7).
  4. Also check Run this program as an administrator if the app needs elevated privileges.
  5. Click Apply and try launching the app.

If you don’t know which version to choose, Windows can suggest one: click Run compatibility troubleshooter and follow the prompts.

Check Memory and Disk for Errors

Faulty RAM or a failing hard drive can cause random runtime errors, often at different points each time. Windows has built-in tools to test both.

Memory diagnostic:

  1. Press Win + R, type mdsched.exe, and press Enter.
  2. Choose Restart now and check for problems. The test runs before Windows loads and may take several minutes.
  3. If errors appear, replace the faulty RAM module (consult your PC’s manual).

Disk check:

  1. Open Command Prompt as administrator.
  2. Run chkdsk C: /f /r. You’ll be asked to schedule it for the next restart. Type Y and restart.
  3. The scan will attempt to fix file system errors and mark bad sectors. This can take a long time on large drives.

Frequently Asked Questions

What is the most common runtime error in Windows 11?

The most common is “Microsoft Visual C++ Runtime Library” errors, usually caused by missing or outdated Visual C++ Redistributables. Fixing this involves installing the latest redistributable packages from Microsoft.

Can a runtime error damage my computer?

No, a runtime error itself does not damage hardware. However, if the error is caused by overheating or a failing hard drive, ignoring it could lead to hardware failure. Always check system temperatures and disk health if errors persist.

Why does my game crash with a runtime error but other apps work?

Games often require specific GPU drivers, DirectX, and Visual C++ libraries. Updating your graphics driver and installing the latest DirectX runtime (via Windows Update) usually resolves this. Also, check if the game’s anti-cheat software conflicts with background apps.

Will resetting Windows 11 fix runtime errors?

Yes, a reset (Settings > System > Recovery > Reset PC) will reinstall Windows and clear most software-related runtime errors. Choose “Keep my files” to preserve personal data, but back up anyway. This is a last resort after other fixes fail.

How do I find the exact error code for my runtime error?

When the error dialog appears, note the error code (e.g., 0x80070005) and the module name. Search that exact code along with “Windows 11” to find specific fixes. You can also check Event Viewer (eventvwr.msc) under Windows Logs > Application for details.

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 →