How to Guide

How to Fix Windows Error 0xc0000005 – Access Violation Issue

windows recovery issue

The Windows error 0xc0000005 — also called an Access Violation or Exception Code 0xc0000005 — is one of the most frustrating errors a Windows user can encounter. One moment an application is running fine; the next you get a pop-up that reads “The application was unable to start correctly (0xc0000005). Click OK to close the application.”

This error appears on Windows 10 and Windows 11 alike and can be triggered by dozens of things: a failing RAM stick, corrupted system files, a bad Windows update, outdated drivers, or even malware. The good news is that in almost every case, it can be fixed without reinstalling Windows — if you follow the right steps in the right order.

This guide walks you through 10 proven fixes, from the fastest five-minute checks to the more advanced repairs used by IT professionals. Work through them in order and you’ll resolve the error in a single session.

Already running a Windows version that’s expired or improperly activated? An unlicensed copy of Windows can cause persistent system errors. Get a genuine Windows 11 key or Windows 10 key from Wincdkey and eliminate that variable entirely.

What Is Windows Error 0xc0000005?

Error 0xc0000005 is a memory access violation. It occurs when a running program attempts to read from or write to a memory address it doesn’t have permission to use. Windows intercepts this illegal operation and terminates the offending process — which is why you see the error instead of a full system crash.

The error shows up in three main situations, each with slightly different root causes:

  • Access Violation Error 0xc0000005 — appears when opening a folder, file, or application. Usually caused by faulty RAM, a malware infection, or corrupt disk drivers.
  • Application Error 0xc0000005 — appears when launching a specific program. Usually caused by incompatible software, a missing Visual C++ runtime, or a bad Windows update.
  • Windows Installation Error 0xc0000005 — appears during a Windows OS install or update. Usually caused by damaged installation media, bad sectors on the drive, or insufficient memory.

Common Causes at a Glance

CauseHow It Triggers 0xc0000005
Faulty or failing RAMCorrupted memory cells pass bad data to applications, causing illegal memory reads
Corrupted system filesDamaged Windows DLLs fail to handle memory requests correctly
Outdated or corrupt driversDriver conflicts cause memory collisions between processes
Malware infectionMalicious code hijacks system memory, triggering access violations
Problematic Windows UpdateA buggy update can break system DLLs or registry settings
Data Execution Prevention (DEP)DEP may block a legitimate (but older) application from running
Incorrect virtual memory / pagefile settingsA too-small pagefile causes memory overflow errors
Third-party software conflictsSecurity software or startup apps interfere with process memory
Corrupted or incomplete application installMissing app files create memory exceptions when that code path is reached
Registry errorsCorrupted registry entries misdirect program execution into protected memory

Fix 1: Run the Windows Memory Diagnostic (Check Your RAM)

Faulty RAM is the number one hardware cause of error 0xc0000005. This is the quickest hardware check you can do and should be your first step.

  1. Press Win + R, type mdsched.exe, and press Enter.
  2. Click Restart now and check for problems (recommended).
  3. Your PC will restart and run a memory scan (typically takes 10–20 minutes).
  4. After the scan, Windows restarts and displays results in the system tray. To see the full report, open Event Viewer → Windows Logs → System and look for entries from MemoryDiagnostics-Results.

If errors are found: Shut down your PC and reseat your RAM sticks. If errors persist, test each stick individually to identify the faulty module and replace it.

For advanced testing: Download MemTest86 (free), create a bootable USB, and run it overnight. It performs far more thorough testing than the Windows built-in tool.

Fix 2: Repair System Files with SFC and DISM

Corrupted Windows system files are the most common software cause of error 0xc0000005. The System File Checker (SFC) and Deployment Image Servicing and Management (DISM) tools can find and repair them automatically.

  1. Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
  2. Run the SFC scan first:
sfc /scannow
  1. Wait for it to complete (this can take 10–20 minutes). Restart your PC afterwards.
  2. If the error persists, run DISM to repair the Windows image that SFC relies on:
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth
  1. Restart your PC after DISM completes, then run sfc /scannow one more time.

Tip: If SFC reports that it found corrupt files but could not repair them all, the DISM restore step is critical — it downloads replacement files directly from Windows Update to fill in anything SFC couldn’t fix locally.

Fix 3: Run a Full Malware Scan

Malware that embeds itself in system processes is a well-known cause of access violation errors. A malicious program attempting to write to protected memory areas will trigger 0xc0000005 repeatedly.

  1. Open Windows Security (search for it in the Start menu).
  2. Go to Virus & threat protection → Scan options.
  3. Select Full scan and click Scan now.

For a deeper scan that runs before Windows fully loads (catching rootkits), select Microsoft Defender Offline scan instead. Your PC will restart and scan before Windows starts — this is the most thorough option.

If you’re using a third-party antivirus, run its full or deep scan equivalent. Make sure virus definitions are fully up to date before scanning.

Fix 4: Update or Roll Back Device Drivers

Outdated graphics, storage, or chipset drivers are a frequent trigger for application-specific 0xc0000005 errors — especially in games or GPU-intensive applications.

Update Drivers

  1. Right-click the Start button and select Device Manager.
  2. Look for any device with a yellow exclamation mark — these are flagged as problematic.
  3. Right-click the device → Update driver → Search automatically for drivers.
  4. For GPU drivers, always download directly from the manufacturer: NVIDIA, AMD, or Intel.

Roll Back a Driver (If the Error Started After a Recent Update)

  1. In Device Manager, right-click the recently updated device → Properties.
  2. On the Driver tab, click Roll Back Driver if the option is available.
  3. Restart your PC and test whether the error is gone.

Fix 5: Uninstall a Problematic Windows Update

Microsoft occasionally releases updates that introduce new bugs, including memory access errors. If the 0xc0000005 error appeared shortly after a Windows Update, this fix is worth trying before anything more drastic.

  1. Go to Settings → Windows Update → Update history.
  2. Click Uninstall updates.
  3. Sort by Installed On date to find recent updates.
  4. Right-click the most recent update and select Uninstall.
  5. Restart your PC and test.

On Windows 11: Go to Settings → System → Recovery → Go back if you want to revert to a previous Windows build entirely.

Fix 6: Disable Data Execution Prevention (DEP) for a Specific App

Data Execution Prevention (DEP) is a Windows security feature that prevents code from running in non-executable memory regions. While this is a good thing for security, it can incorrectly block older or poorly coded legitimate applications — causing error 0xc0000005.

Important: Only disable DEP for specific trusted applications, never system-wide. This method is especially useful for legacy software and older games.

  1. Press Win + S, type View advanced system settings, and open it.
  2. Under the Advanced tab, click Settings under Performance.
  3. Click the Data Execution Prevention tab.
  4. Select “Turn on DEP for all programs and services except those I select”.
  5. Click Add, browse to the executable (.exe) file of the problematic application, and add it.
  6. Click Apply → OK and restart your PC.

Alternatively, you can disable DEP for a specific app via Command Prompt (Admin):

bcdedit /set {current} nx AlwaysOff

Warning: The above command disables DEP system-wide. Use it only as a temporary diagnostic step, and re-enable DEP with bcdedit /set {current} nx AlwaysOn afterwards.

Fix 7: Adjust Virtual Memory (Pagefile) Settings

When physical RAM runs out, Windows uses a portion of your hard drive as virtual memory (the pagefile). If the pagefile is too small or misconfigured, memory-intensive applications can trigger access violation errors.

  1. Press Win + S, search Adjust the appearance and performance of Windows, and open it.
  2. Click the Advanced tab, then click Change under Virtual memory.
  3. Uncheck Automatically manage paging file size for all drives.
  4. Select your system drive (usually C:).
  5. Select Custom size and set:
    • Initial size: 1.5× your total RAM in MB (e.g., 16 GB RAM = 24,576 MB)
    • Maximum size: 3× your total RAM in MB (e.g., 16 GB RAM = 49,152 MB)
  6. Click Set → OK and restart.

Fix 8: Perform a Clean Boot

A clean boot starts Windows with only Microsoft’s essential services and drivers — stripping out all third-party startup programs. This is the fastest way to determine whether a background application (antivirus, backup software, overlay tools, etc.) is conflicting with your program and causing the error.

  1. Press Win + R, type msconfig, and press Enter.
  2. On the Services tab, check Hide all Microsoft services, then click Disable all.
  3. On the Startup tab, click Open Task Manager.
  4. In Task Manager, right-click each startup item and select Disable.
  5. Close Task Manager and click OK in msconfig.
  6. Restart your PC and try launching the application that was throwing the error.

If the error is gone in clean boot: A third-party service or startup app is the culprit. Re-enable them one by one (restarting after each) until the error returns — that’s your conflict.

To restore normal startup: Open msconfig → Services tab → Enable All → Startup tab → enable all items → Restart.

Fix 9: Reinstall the Affected Application

If error 0xc0000005 only appears when launching one specific application, the app’s own installation files may be corrupted or incomplete. A clean reinstall often resolves this immediately.

  1. Go to Settings → Apps → Installed apps (Windows 11) or Settings → Apps → Apps & features (Windows 10).
  2. Find the application, click it, and select Uninstall.
  3. After uninstalling, open File Explorer and manually delete any remaining folders for the app in:
    • C:\Program Files\
    • C:\Program Files (x86)\
    • C:\Users\[YourName]\AppData\Local\
    • C:\Users\[YourName]\AppData\Roaming\
  4. Restart your PC, then download a fresh installer from the official source and reinstall.

For games crashing with 0xc0000005: Also check that your Visual C++ Redistributables are up to date. Download the latest packages from Microsoft’s official page. Many games rely on specific versions (2015–2022 x64 and x86).

Fix 10: Use System Restore or Reset Your PC

If none of the above fixes resolve the error, these are your two final options — ordered from least to most disruptive.

Option A: System Restore

Rolls your system back to a previous state before the error started, without affecting your personal files.

  1. Press Win + S, search Create a restore point, and open it.
  2. Click System Restore.
  3. Choose a restore point dated before the error first appeared.
  4. Follow the wizard and allow your PC to restart.

Option B: Reset This PC (Keep My Files)

Reinstalls Windows while preserving your personal files. Removes all apps and settings.

  1. Go to Settings → System → Recovery.
  2. Under Reset this PC, click Reset PC.
  3. Select Keep my files and follow the instructions.

Before resetting, make sure your Windows licence is genuine and noted down — you’ll need it after the reset. If you need a Windows 11 Pro licence key or a Windows 10 Pro key, Wincdkey offers genuine keys at a fraction of the retail price — delivered instantly by email.

Bonus: Check for Disk Errors with CHKDSK

Bad sectors on your hard drive or SSD can cause the OS to read corrupted data into memory, triggering access violations. Run CHKDSK to scan and repair disk-level errors:

  1. Open Command Prompt as Administrator.
  2. Run:
chkdsk C: /f /r /x
  1. If prompted that the volume is in use, type Y and press Enter — the scan will run on the next restart.
  2. Restart your PC and allow CHKDSK to complete before Windows loads.

The /f flag fixes errors, /r locates bad sectors and recovers readable data, and /x forces the volume to dismount first if needed.

Windows Error 0xc0000005: Quick Fix Summary

#FixBest ForTime Needed
1Windows Memory DiagnosticFaulty RAM15–30 min
2SFC + DISM scanCorrupted system files20–40 min
3Full malware scanMalware / virus infection30–60 min
4Update / rollback driversOutdated or broken drivers10–20 min
5Uninstall recent Windows UpdateBuggy Windows Update5–10 min
6Disable DEP for specific appLegacy / older applications5 min
7Adjust virtual memory (pagefile)Memory-intensive apps / low RAM5 min
8Clean bootThird-party software conflict10–15 min
9Reinstall the affected appCorrupted application files10–30 min
10System Restore / Reset PCPersistent, unresolvable errors30–90 min
+CHKDSKBad sectors / disk errors30–60 min

Frequently Asked Questions

What causes error 0xc0000005 on Windows 11?

On Windows 11, the most common causes are faulty RAM, a corrupt or recently changed device driver, a buggy Windows cumulative update, or a third-party application that conflicts with Windows 11’s stricter memory protection. The fixes above all apply to Windows 11 as well as Windows 10.

Can error 0xc0000005 cause data loss?

The error itself doesn’t delete data, but if it’s caused by failing hardware (especially RAM or a dying hard drive) or malware, those underlying issues can cause data loss. Run your RAM and disk checks promptly and keep regular backups.

Why does 0xc0000005 happen only with one specific program?

If only one application throws this error, the most likely causes are: a corrupted application installation, a missing or outdated Visual C++ Redistributable, a DEP conflict, or an incompatibility with your current version of Windows. Start with Fix 9 (reinstall the app) and Fix 6 (DEP) for single-app errors.

Does 0xc0000005 mean I need to reinstall Windows?

In most cases, no. The 10 fixes in this guide resolve the error without a full reinstall. Only if every other option fails should you consider resetting or reinstalling Windows — and even then, the “Keep my files” reset option preserves your personal data.

I got error 0xc0000005 during a Windows installation — what do I do?

This usually points to bad RAM, bad installation media (a corrupted ISO or faulty USB drive), or bad sectors on the target drive. Run MemTest86 on the RAM, recreate your bootable USB using a freshly downloaded ISO, and run CHKDSK on the target drive before attempting the installation again.

My system shows 0xc0000005 for ntdll.dll — is that different?

When ntdll.dll is the faulting module, it almost always points to either faulty RAM or a software incompatibility rather than a problem with ntdll.dll itself. ntdll.dll is one of the lowest-level Windows libraries, so when something corrupts memory before reaching it, the fault is logged against it. Prioritise Fixes 1, 2, and 8.


How to Prevent Error 0xc0000005 in the Future

  • Keep Windows updated. Microsoft’s Windows 11 and Windows 10 cumulative updates regularly patch memory-handling bugs.
  • Keep drivers current. Check Device Manager and your GPU manufacturer’s site monthly.
  • Use a reliable antivirus. Consider Kaspersky Total Security or Avast Premium Security, available at genuine key prices from Wincdkey.
  • Test RAM periodically. Run MemTest86 once a year, or whenever you add new RAM.
  • Monitor your hard drive health. Use CrystalDiskInfo (free) to check SMART health data on your drives.
  • Don’t install software from untrusted sources. Pirated software is a primary vector for malware that causes memory violations.
  • Make sure your Windows licence is genuine. An improperly activated copy of Windows may receive incomplete or blocked updates. A genuine Windows 11 Pro licence from Wincdkey is the most cost-effective way to ensure full, legitimate activation and update access.

Need a Genuine Windows Licence?

If you’ve worked through this guide and found that your Windows installation itself is damaged beyond repair — or you’re running an improperly activated copy — a clean reinstall with a genuine key is the fastest path to a stable system.

Wincdkey is a verified Microsoft Partner supplying genuine product keys at up to 70% off retail price. Keys are delivered to your inbox within minutes.

Read what thousands of customers say about us on Trustpilot before you buy. Questions? Our Help & Support Centre has you covered. Full installation guidance is available in our Installation & Activation Guide.

Leave a Reply

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