Skip to content

How to fix exception code: 0xc0000005?

  • by
  • 6 min read

Exception code: 0xc0000005 is a specific error code that represents an Access Violation error in Windows. It indicates that an application or process attempted to access a memory location that it was not authorised to access, resulting in a crash or termination of the program.

This error can occur in various scenarios, such as when launching a particular application, during system startup, or while performing specific actions within an application.

The impact of the exception code: 0xc0000005 error can range from minor inconveniences to severe system instability. Applications may crash frequently, leading to data loss or disruption of workflow. It is essential to address this error promptly to ensure the smooth functioning of your Windows system. Fortunately, there are a few steps that you can take to fix the exception code: 0xc0000005 error.

Common Causes of Exception Code: 0xc0000005

Here are some of the most common reasons for the exception code: 0xc0000005 error:

  • Faulty or incompatible software: Outdated or incompatible software can conflict with system resources and trigger the exception code: 0xc0000005 error.
  • Memory issues: Problems with system memory, such as faulty RAM modules or insufficient memory allocation, can lead to this error.
  • Malware infections: Malicious programs or viruses can interfere with system processes, including memory access leading to this error.
  • Outdated or faulty device drivers: Outdated or incompatible device drivers can also be the cause of conflicts and memory access violations.

Also read: Application blocked by Java security error: 2 Fixes

Fix Exception Code: 0xc0000005

Now that we have understood the common causes behind the exception code: 0xc0000005 error, let us now dive into some of the fixes that you can try to resolve the issue.

Restart your computer

Restarting your computer can fix many minor bugs haunting the machine. When you restart a computer, all the existing processes and applications are closed and the memory is refreshed.

So, if there is a memory allocation problem with the system, restarting the computer should be your first choice of action.

Run a malware scan

You can download any standard anti-virus on your computer and perform a quick or detailed scan to detect any malicious programs.

Windows also provide an in-built virus detection software. Type Windows Security in the taskbar search space and then click on the software. Here, select Virus and threat protection and then run a full scan.

Update the drivers

As we have explained earlier, faulty or outdated drivers can be one of the many causes the of exception code: 0xc0000005 error. So, you should regularly update the drivers to avoid such errors in the future.

Here’s how to update drivers:

  • Search Device Manager from the taskbar search space and then click on the software to open it.
  • Now, click on Disk drives to expand the option.
  • Right-click on the drive and then select the Update driver option.
  • Next, click on Search automatically for drivers to allow Windows to search for updates.

Update or patch software

If you are experiencing exception code: 0xc0000005 error due to a particular software or a program, make sure to update it asap.

You can also apply patches and security updates for the operating system and software.

Turn off Data Execution Prevention (DEP)

Data Execution Prevention (DEP) is a security feature in Windows that helps protect your computer against certain types of malware and attacks. DEP works by monitoring and preventing the execution of code in certain memory regions that are intended for data only.

However, sometimes DEP can also cause errors like the exception code: 0xc0000005. You can try to turn off DEP to resolve the error.

Step 1: Press the Windows key + R to open the run dialog box. Here, type sysdm.cpl to open the System Properties menu. After that, hit OK.

Step 2: Now, click on the Advanced option at the top.

Step 3: Now, click on the Settings option under the Performance section.

Step 4: Click on Data Execution Prevention.

Step 5: Now click on the Turn on DEP for all programs and services except those I select option. After that, click on Add to locate and select the .exe files of the programs that you want to turn off DEP. When you have done that, click OK.

Run Windows Memory Diagnostic

You can run Windows Memory Diagnostic to identify and resolve memory-related issues that may be causing errors or system instability.

Search Windows Memory Diagnostic on the taskbar search space and then click on the software to open it. You will see two options:

  • Restart now and check for problems: This option allows you to immediately run the memory diagnostic tool on your next system startup. Make sure to save any unsaved work before selecting this option as your computer will restart.
  • Check for problems the next time I start my computer: This option lets you schedule the memory diagnostics to run during the next system startup.

Also read: How to fix System Service Exception in Windows 10?


Kumar Hemant

Deputy Editor at Candid.Technology. Hemant writes at the intersection of tech and culture and has a keen interest in science, social issues and international relations. You can contact him here: [email protected]