Troubleshooting Guide to Fix Error Code 0xc0000005 on Windows 7, 8 or 10

thtrangdaien

Troubleshooting Guide to Fix Error Code 0xc0000005 on Windows 7, 8 or 10

Windows has been the most popular operating system for decades now and why not when everything works so smoothly with Microsoft Windows. However, there can be some exceptions such as when you face some complicated error codes like 0xc0000005. These errors come with no ready-made solutions, however, you can still do research about the causes and then fix it accordingly just like I have done. Here, in this guide, you will find all the reasons, situations leading to the error code “0xc0000005” and what all solutions you can try to fix it. The solutions have been properly classified into the situations where the chances of facing this error are maximum. So let’s start our journey to the troubleshooting lane. 

When Do the Windows Error 0xc0000005 Occur?

Before you go on dealing with this error, first of all, it is important to know when the error 0xc0000005 arises in the first place so that fixing it becomes easy, and you can apply the required troubleshooting. The error 0xc0000005 is a part of Windows errors and not only affects the Windows 10 users but also users of Windows 7 and 8. Here are three main situations when you face this error:

Error Message- “Unexpected error when installing Windows. Make sure the installation source can be accessed and restart the installation. Error code: 0xC0000005”

This error can interrupt the Windows installation process and occurs due to temporary hardware issues with RAM or if the hard drive has gone corrupt due to bad sectors.

Error Message- “0xC0000005: Access violation when reading position …”

The 0xC0000005 error can also arise when an application in Windows tries to access a location that is not assigned to it. So, due to registry issues, faulty RAM, corrupt drivers, virus infection, or incorrect security updates, etc., you may have to face this error.

Error Message- “The application could not be started correctly (0xc0000005). Click on “OK” to close the application.”

The error 0xC0000005 can also arise when you start a program installed on your Windows computer and it shows this error message. Sometimes reinstallation of the program is also not enough to fix this error if it is caused by some invalid, unsigned, or incomplete DLL files.

Apart from this, the error can also occur while updating Windows, hence not letting you install improvements for your operating system. 

What Causes 0xC0000005 Error?

It depends on the area where the error 0xC0000005 appears, there can be several reasons behind its occurrence. Here is a list of reasons that may result in the occurrence of 0xC0000005 error on Windows:

  1. The hardware is not working properly or has been configured incorrectly. 
  2. The error can be due to the executed software
  3. Erroneous or invalid registry entries, missing or incomplete DLL files (Dynamic Link Library), or damaged system files and configurations can also be the reasons for facing 0xC0000005 error.
  4. The error is happening due to malware in your device.

Solutions to Fix Error Code 0xC0000005

Once you are aware of the situations when the error can happen and the reasons behind it, you must not delay in applying the solutions given here:

See also  Emails Disappeared from Outlook: Explained and Solved

One possible reason for facing the error 0xC0000005 is when your RAM or hard drive is defective and the installation medium you have used is damaged. So, first, you should try installing Windows again and if this doesn’t help, you can proceed with the solutions given here:

If you have damaged or incompatible partitions on the hard drive, they can be the reason for facing 0xc0000005 error when installing Windows especially when you are installing new Windows. To fix this, you can delete and recreate the partitions; for that select the user-defined installation type (for advanced users) and then follow the given steps:

  • Select the partition specified for Windows (type: “Primary”), click on “Delete”, and confirm.
  • Follow the same steps for the partition with the description “System reserved” and for other partitions related to older Windows installations.
  • Once you have deleted all the partitions, you will see the entry in the list of the installation assistant “Non-allocated storage space on drive 0”. You have to select this entry and then click “New”.
  • After you click “New”, the setup will calculate the maximum storage space automatically, and to confirm the changes, you have to click on ‘Apply’. This will create at least two new partitions.
  • Click on the partition (with more storage space) to set it as the installation drive for Windows. The installation will begin when you will click on the “Next” button.

The defective hardware can also be the reason you are facing error 0xC0000005 while installing Windows. If that is the case, you should check the working memory using the Windows Memory Diagnostic.

Apart from RAM, the hard drive on which you want to install Windows can also be the culprit and if it doesn’t work properly, it is recommended to replace it. 

If you are facing this error while executing a program that is trying to access a certain resource that is unreachable, that is known as access violation errors. When you face this error, it may also result in the software crashing. 

First, you should remove the concerned application from your device and then reinstall it. If the error was caused by software files or settings, it will get resolved by then. But if the reinstallation didn’t help, you can go on with the given solutions:

Data Execution Prevention (DEP) is an integrated feature provided by Windows to protect working memory that can also lead to error code 0xc0000005. The reason is some programs might be incompatible with this feature, hence the result is the error. Therefore, the easiest solution, in this case, is to deactivate the security feature for the particular application you are facing the error with. 

To turn it off, make sure you have the administrator rights and then proceed with the following steps:

  • Using the Start menu, start the Run dialog or press the ‘Windows+R’ key simultaneously. 
  • In the dialog box, type “sysdm.cpl” and press Enter to open the System Settings.
  • Move to the  “Advanced” tab and then click on the “Settings” button in the “Performance” section.
See also  How to Connect Two Monitors to a Laptop HDMI

In the  “Advanced” tab and then click on the “Settings” button in the “Performance” section

  • From the “Data Execution Prevention” tab, select the point “Turn on DEP for all programs and services except for those selected”.

Select the point “Turn on DEP for all programs and services except for those selected”

  • Then click on “Add” and look for the .exe file of the program that is causing the error.

click on “Add” and look for the .exe file of the programMake sure to save the change by clicking “Apply” and then “OK”.

The next solution to fix the 0xc0000005 error is to deactivate the AppInit_DLLs function; the use of this function is to load any selection of DLLs (Windows libraries) in the process executed in the user mode. This ensures better use of storage space and as a result, the affected programs load faster and consume less hard drive space. Sometimes, the “AppInit_DLLs” entry can cause problematic access violations, hence you can deactivate this feature in the Windows Registry as explained here:

Note- Any changes to the Windows Registry database should be made carefully as incorrect changes can also lead to issues with the system making it nonfunctional. You can also create a backup of the current state of the registry before you make any changes. For that, go to the registry editor, click on “File” and then choose “Export”. Then enter a name for it and then save it wherever you want.

  • Launch the “Run” dialogue box and then type “regedit” and press [Enter].

Launch the “Run” dialogue box and then type “regedit” and press [Enter]

  • After opening the Registry Editor, look for the following key:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWindows.

look for the following key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWindows

  • Double-click the entry “LoadAppInit_DLLs”, to change the assigned value to “0”. Click “OK” to save the change. Then restart the system and try to start the problematic software again.

Double-click the entry “LoadAppInit_DLLs”, to change the assigned value to “0”

The error code “0xc0000005” in Windows 7 or 8 can also appear if your device is affected by malware. The Windows security suite offers good security against viruses, bots,  Trojan horses, and other malware, and you can also use third-party antivirus software for extra protection to your device. Still, there are chances that malware can enter your systems, and to check that you can run malware scanners and remove all the malware from your device. 

Even Microsoft offers a tool, known by the name of Malicious Software Removal Tool (MSRT) that can be used to remove harmful software.

If you are still getting the error code “0xc0000005” even after following all the above solutions, the next thing to do is to check if there is a hardware defect or the RAM storage has been damaged.

Note- If you don’t have the expertise to replace the RAM of your device, you can consider taking the help of an expert to avoid any damage during the RAM replacement. 

  • Before getting started with the replacement, you should be sure that the error is due to a defective storage module. 
  • As a solution, Windows Memory Diagnostic is already there in the system that you can find using the Start menu; under “Windows Administration Programs”. 
  • Start the tool and then select the “Restart now and check for problems” option. This will shut down the PC and when it restarts, it will run the memory diagnostic. 
See also  Are You Currently Stuck In “How to Pay For OnlyFans Without Credit Card?” Let Me Help

Start the tool and then select the “Restart now and check for problems” option

  • Once the check is complete, Windows will start as normal, and you will see the results of the check-up where you will be informed if memory problems were detected and if the RAM is working properly or not.

The error code 0xc0000005 can also appear while running one or more applications making it unable to even start the application. You will get the error message “The application was unable to start correctly” and this can happen with any of the Windows versions like 7, 8, or 10. You can try to reinstall the application that you are facing an error with. This will restore the program files that were lost during installation. Or you can perform a malware scan using the method explained above. 

If the error 0xc0000005 still continues to arise, you can try the following solutions:

The error 0xc0000005 can arise when you start an application if the device drivers are missing or outdated. Windows automatically install the latest drivers, however, sometimes, the operating system is not able to find the right device drivers when you replace the hardware; hence you should always take care of the hardware compatibility. 

To update your device with the latest drivers, you can go to the manufacturer’s website and download the update directly from there, or you can use the search feature provided by the Device Manager. Open the Device Manager, right-click on the relevant hardware and then choose the option “Update drivers”. By doing this, you will be able to look for available drivers online or on your Computer. 

Open the Device Manager, right-click on the hardware and then click “Update drivers”.

The next possible reason due to which you are facing issues in starting any application and getting the error code “0xc0000005” is erroneous boot configuration data that can usually happen due to malware infection. You cannot fix this by simply removing the malware as the false entries will still be present in the boot database. This error will also require deleting the bootloader paths xOsload.exe and xNtKrnl.exe, to fix the problem.

To check the current bootloader paths, run the command prompt and enter the command “bcdedit”.

Now, you will need a Windows installation medium (CD, DVD or USB stick) to remove the wrong boot paths and reset the boot configuration data to the original condition. That’s how you will be able to start the command prompt out of regular system operation. Boot your PC and then follow the given steps:

  • In the language settings, click “Next” and then click “Computer Repair Options”.
  • Then press the following buttons in the given order- “Troubleshooter”, “Advanced Options”, and “Command Prompt” (in Windows 10 and 8) or “Use Recovery Tools…”, “Next”, and “Command Prompt” (in Windows 7).
  • After that, enter the following commands in the command line:
del D:windowssystem32xntkrnl.exe

del D:windowssystem32xosload.exe

del D:windowssystem32driversoem-drv64.sys

attrib c:bootbcd -h -r -s

ren c:bootbcd bcd.old

bootrec /rebuildbcd

  • Once done with that, restart your PC and enter your Windows key if you are instructed to reactivate Windows.

Also Read-

How to Update Windows?

Guide to Fix Windows Error 0x0 0x0

Categories: Technology
Source: SCHOOL TRANG DAI