Some Windows users have encountered the problem of some programs not opening with error code 

 0xc0000005 also known as Access Violation Error




This is a common problem faced by Windows users regardless of the operating system version. It may appear in Windows 7/8/10

The error usually appears when trying to run a program or application (as indicated by the name of the error). It prevents users from starting various applications and programs and states that the application was unable to start properly

At this point, all you can do is close the error popup by clicking OK and the app closes

 The error can occur not only when trying to run an application or program, but also when trying to use some built-in Windows tools. Therefore, the error can occur when trying to perform a number of different tasks.

Causes of error 0xc0000005

There are many reasons for this problem, such as third-party antivirus software which is causing application error 0xc0000005. In addition, it is possible that the system registry is corrupted causing the system and its associated programs to behave abnormally. There may also be problems with the installed drivers (drivers) they may be corrupt, incorrect or defective. Some software may have been incorrectly updated or installed, or the operating system is infected with malware or a virus
There is no particular reason for error 0xc0000005
But we will try in today's article to review some steps to solve this problem

Check the system and make sure there are no viruses

Of course, it is a simple but very important step because malware often prevents the system from accessing various programs, applications, and tools.
You can use Windows Defender if you are using Windows 10 or you can use a third-party program to check the system

Temporarily disable your antivirus



After performing the scan and making sure that the device is free of viruses and the problem still exists, the error code 0xc0000005 continues to appear
Here you must disable the antivirus software you are using
Antivirus software can affect various files and programs and also cause application error 0xc0000005. To make sure that a third-party antivirus is not the cause of this error, temporarily disable it and check if the error still persists. If disabling (or uninstalling) the antivirus is helpful, we recommend switching to another antivirus

Repair system registry


Error 0xc0000005 may be caused by a corrupt system registry. This problem usually occurs when certain programs are installed or uninstalled incorrectly.
For example trying to install a program via the same previously installed program, without deleting the old program first
 To fix this type of registry problem, you must remove (or repair) duplicate and duplicate registry entries




We will use CCleaner to solve this problem
CCleaner is a very useful program that cleans junk files and problems that accumulate over time: temporary files, broken shortcuts and other issues and cleans your browsing history and temporary Internet files, allowing you to be a more confident Internet user and less vulnerable to identity theft.


The most important thing here is to fix the system registry
 Install and open CCleaner. Select "registry" in the left pane and click on "Fix selected Issues." . You will find various registry problems on your computer. To clean or fix it, click "Fix selected problems...". Close CCleaner when it has finished repairing the registry and see if you are still getting application error 0xc0000005.


Turn off DEP

If you are experiencing application error 0xc0000005 when trying to run a specific app or program, adding it as a Data Execution Prevention (DEP) exception might fix the problem. DEP is a security feature in Windows operating systems that helps prevent damage to your computer from various viruses and other security threats. To disable DEP for a specific program, first launch the Run dialog by typing Run in the search and clicking on the Run result, or by right-clicking on the Start menu and selecting the Run option From the contextual menu, or by pressing Windows key + R.
In the Run dialog box, type the command “sysdm.cpl,” and press Enter or click OK





In the System Properties window, go to the Advanced tab and click on Settings




In the Performance Options window, click on the Data Execution Prevention tab and select




The option "Turn on DEP for all programs and services except those I select". Click "Add." Navigate to the executable (.exe) file of the problematic program, select it, and click Open. Now click "Apply" to save the changes made and exit the system properties window. Check if you are still getting application error 0xc0000005 when trying to run a specific application or program you just added.




In the event that the previous steps did not help in adding the program to Data Execution Prevention, you can close it from the command prompt
cmd
From the start menu, search for cmd and choose Run as Administrator, then put the following command in it

bcdedit.exe /set {current} nx AlwaysOff

After that, a message will appear stating that the operation completed successfully.
Now you have to restart the computer and check that the problem persists or has been resolved
We do not recommend permanently disabling Data Execution Prevention
You can re-activate it by following the same steps above, but with the change to

bcdedit.exe /set {current} nx AlwaysOn

Or you can return it to normal mode through the following command

 bcdedit.exe /set {current} nx OptIn

Then, restart the computer

Run System File Checker


System File Checker
System File Checker is a Windows utility that allows users to search for lost or damaged system files and restore them
  To scan system files and repair any missing or corrupt files. If a (Windows Resource Protection WRP) file is missing or corrupt, Windows may not behave as expected
 Some Windows Functions May Fail or Crash The “sfc scannow” option is one of several specific switches available for the sfc command, the Command Prompt command used to run the System File Checker
To run the command prompt, type “cmd” and select Run as administrator




In the Command Prompt window, type the command “sfc /scannow” and press Enter to execute it
 System File Checker will start. It may take some time. Wait for the scanning process to complete and restart your computer. Check if application error 0xc0000005 persists.



Update device drivers


It is possible that some installed drivers are corrupted causing printer and video drivers application error 0xc0000005
In most cases computers are unable to send and receive data properly without drivers
Also, if the appropriate driver is not installed, the device may not function properly
In that case, you need to get updated/new drivers for the hardware. To update drivers
Go to the search button and type Device Manager or by right-clicking the Start button and selecting Device Manager.
In Device Manager, you will see a list of devices connected to your computer. If you know which drivers are causing the problem, you can only update those drivers. Expand the device category and right-click on the device, then select "Update driver" from the drop-down menu.





You will be asked if you want to automatically search for an updated driver software online or on your computer. If you select the first option, Windows will search your computer and the Internet for the latest driver for your device. If you select the second option, you must locate and install drivers manually in case of course you have already downloaded it to your computer or a CD drive.