Error 0xc0000005 on Windows: What It Means and How to Fix It

Man looking at an error on his laptop screen

Quick answer: 0xc0000005 means a program tried to use memory it isn’t allowed to touch, so Windows stopped it. If only one app shows it, update or reinstall that app (Fixes 2 and 3). If many apps crash with it, the cause is usually damaged system files, a driver, antivirus software or faulty RAM, and Fixes 5 to 7 are where to look.

Applies to: Windows 11 and Windows 10. None of the fixes delete your personal files.

What 0xc0000005 means

0xc0000005 is Windows’ code for an access violation. Every program gets its own area of memory. When a program tries to read or write memory outside that area, Windows closes it to protect the rest of the system and reports this code.

The error itself doesn’t tell you why the program did that. It can be a bug in the program, a damaged file it depends on, another program interfering with it, or memory hardware that is returning bad data. That’s why the fixes below start with the program and work outwards.

Where you see it

Message you seeWhat it usually points toStart with
The application was unable to start correctly (0xc0000005)A damaged program or a missing runtime fileFix 2, Fix 3
A program closes and Event Viewer shows exception code 0xc0000005A program bug, add-in or driverFix 2, Fix 6
Several different apps crash with the same codeSystem files, antivirus or RAMFix 5, Fix 7
Error during Windows setup or a Windows UpdateInstallation media, RAM or firmwareInstalling Windows

Fix 1: Restart and run the app again

Restart the PC (not Shut down, which keeps Fast Startup’s saved state on many PCs). If the app still fails, right-click its shortcut and choose Run as administrator once. If it works as administrator, the problem is permissions in the app’s folder, and reinstalling it (Fix 2) usually sorts that out for good.

Fix 2: Update or reinstall the app

  1. Check the app for updates from its own menu or from the developer’s website. Many access-violation crashes are bugs that have already been fixed.
  2. If there’s no update, open Settings > Apps > Installed apps (Windows 10: Apps & features), find the app, select the three dots or the app name, then Uninstall.
  3. Restart, then install the latest version from the official website or the Microsoft Store.
  4. If the crash is in Office, a browser or another program that supports add-ins or extensions, start it without them first (for example, hold Ctrl while opening Word or Outlook to start in Safe Mode). A faulty add-in is a common cause.

Fix 3: Repair Visual C++ Redistributables

Many Windows programs and games depend on Microsoft Visual C++ Redistributable packages. If one of them is damaged, the program can fail to start with 0xc0000005.

  1. Open Settings > Apps > Installed apps and type Visual C++ in the search box.
  2. For each Microsoft Visual C++ 2015-2022 Redistributable entry (there is usually an x86 and an x64 version), select Modify, then Repair.
  3. If Repair isn’t offered or doesn’t help, download the latest supported Visual C++ Redistributable for both x64 and x86 from Microsoft’s website and install it.

Fix 4: Check your antivirus

Security software watches how programs use memory, and an over-eager rule can stop a legitimate program with this error.

  1. Open Windows Security > Virus & threat protection > Protection history and look for a block on the app at the time it crashed.
  2. If you use third-party antivirus, check its quarantine and event log for the program.
  3. Update the antivirus. If the program is from a trusted source and the antivirus is clearly blocking it, add an exception for that program only, rather than turning protection off.

Don’t leave real-time protection switched off to work around this error. If disabling it briefly makes the program work, that confirms the cause; then add an exception and switch protection back on.

Fix 5: Repair Windows system files

If several apps crash with the same code, damaged Windows files are a likely cause. Open Command Prompt as administrator (select Start, type cmd, choose Run as administrator) and run these two commands one after the other:

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Text scrolling on a dark screen while a repair command runs

Each can take 10 to 30 minutes. Restart when both have finished. If SFC reports that it found corrupt files but could not fix some of them, run both commands once more after the restart.

Fix 6: Update or roll back drivers

Games and graphics-heavy apps often crash with 0xc0000005 because of the graphics driver. Printer and audio drivers can also cause it in the apps that use them.

  1. If the crashes began after a driver update, open Device Manager, right-click the device (for example under Display adapters), choose Properties > Driver > Roll Back Driver.
  2. Otherwise, install the latest driver from your PC maker’s support page or from Intel, AMD or NVIDIA.
  3. Also install any pending items under Settings > Windows Update > Advanced options > Optional updates.

Fix 7: Test your memory (RAM)

Faulty RAM returns wrong data, which can make any program crash with an access violation. It’s a likely cause when the error appears in many different programs, at random, or together with blue screens.

Two computer RAM memory modules
  1. Save your work and close everything.
  2. Press Windows + R, type mdsched.exe and press Enter.
  3. Choose Restart now and check for problems. The test runs before Windows starts and takes several minutes.
  4. After Windows starts again, the result appears as a notification. If you miss it, open Event Viewer > Windows Logs > System and look for the source MemoryDiagnostics-Results.

If the test reports errors, and you recently added RAM or changed memory settings such as XMP or EXPO in the BIOS, undo that first. Otherwise the memory module may need replacing; on a PC under warranty, contact the manufacturer.

Fix 8: Scan for malware

Malware that injects itself into other programs can cause access violations. Run a full scan in Windows Security > Virus & threat protection > Scan options > Full scan. If you suspect an infection, also run Microsoft Defender Antivirus (offline scan) from the same list, which restarts the PC and scans before Windows loads. Our guide on how to scan for malware walks through every scan type step by step.

Fix 9: Find a conflicting program with a clean boot

A clean boot starts Windows with only Microsoft services, so you can tell whether another program is interfering.

  1. Press Windows + R, type msconfig and press Enter.
  2. On the Services tab, tick Hide all Microsoft services, then select Disable all.
  3. On the Startup tab, select Open Task Manager and disable each startup item.
  4. Restart and try the program. If it works, turn services back on a few at a time until the error returns, and you’ve found the culprit.
  5. When you’re done, go back to msconfig, choose Normal startup and restart.

Fix 10: Undo recent changes

If the error started after a specific change, reverse it:

  • After a Windows update: Settings > Windows Update > Update history > Uninstall updates, and remove the most recent one.
  • After installing other software: uninstall it and test again.
  • Otherwise use System Restore: press Windows + R, type rstrui, and choose a restore point from before the problem started. Your personal files aren’t affected, but apps installed after that point will need reinstalling.

If it happens while installing Windows

An access violation during Windows setup or a large update usually points to the installation media or the hardware, not to a program.

  • Create fresh installation media with Microsoft’s Media Creation Tool on a different USB drive.
  • Disconnect everything you don’t need: extra drives, docks, printers and USB devices.
  • Run the memory test in Fix 7 if you can still start Windows.
  • Check your PC maker’s website for a BIOS or UEFI firmware update, and follow their instructions exactly.

Frequently asked questions

Is 0xc0000005 a virus?

Not usually. It’s a general error that appears whenever a program breaks Windows’ memory rules. Malware is one possible cause, which is why Fix 8 is included, but program bugs, drivers and damaged files are far more common.

Can 0xc0000005 damage my computer?

No. The error is Windows protecting itself by closing the program. The only risk is losing unsaved work in the program that crashed.

Should I turn off Data Execution Prevention (DEP) to fix it?

We don’t recommend it. DEP is a security feature that stops code running from protected memory. Turning it off for a whole PC weakens its protection against attacks, and it rarely fixes the error. Updating or reinstalling the program is the safer route.

Why does only one game crash with 0xc0000005?

When only one program is affected, the cause is almost always in that program, its add-ons or mods, or the graphics driver it uses. Verify the game files in your game launcher, remove mods, and update the graphics driver (Fix 6).

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *