🛒 Best Price Today on Amazon
Prime members get fast, free shipping on everything above, plus member-only deals. New members get a 30-day free trial — cancel anytime.
As an Amazon Associate we earn from qualifying purchases.
Few errors feel as unhelpful as 0xc0000005. A game closes without warning, Windows shows a short message about an access violation, and you are left with no clue about what actually went wrong. The good news is that the error is a symptom with a short list of usual causes, and most of them can be ruled out in order, from the easiest check to the hardest one.
This guide is for PC gamers who see 0xc0000005 when launching or playing a game, whether it happens in one game or in several. It explains what the code means in plain language, walks through six fixes from easiest to hardest, and shows how to confirm the crash is really gone instead of just quiet for an evening.
What 0xc0000005 Means
The code 0xc0000005 is the Windows status code STATUS_ACCESS_VIOLATION. It means a program tried to read, write, or run code in a part of memory it was not allowed to touch, and Windows stopped the program rather than let it continue. Microsoft documents this as an access violation exception, and its documentation notes that the attempt can be a read, a write, or an attempt to execute code from a protected memory page.
That definition matters because it tells you the error is not one single fault. The bad memory access can come from the game’s own files being damaged, from a driver handing the game bad data, from another program interfering with the game, from corrupted Windows system files, or from memory hardware that is unstable or failing. A crash in one game usually points at that game or its drivers, while the same code appearing across several unrelated games points more toward Windows, drivers, or hardware.
One useful clue is the faulting module named in the crash details. Windows logs application crashes in Event Viewer, under Windows Logs and then Application, and the entry names the faulting application, the faulting module, and the exception code. If the faulting module sits inside the game’s own folder, the game itself is the likely culprit. If it names a graphics or audio driver file, start with drivers. And if the report blames a core Windows file such as ntdll.dll, do not assume Windows is broken: those files are used by almost everything, so they often appear in the report simply because they were the code running when the damage surfaced.
Fix It, Easiest First
Work through these steps in order. Stop and test the game after each one, because the first fix that works tells you what the cause was, and skipping ahead wastes the clue.
Step 1: Verify the Game Files
A damaged or missing game file is the most common cause when only one game crashes, and it is also the fastest to rule out. Launchers such as Steam, the Epic Games Store, and Battle.net all include a repair or verification option, and it compares the files on your drive with the files the game is supposed to have, then downloads replacements for anything that does not match.
On Steam, open your library, right-click the game, choose Properties, open the Installed Files tab, and select Verify integrity of game files. In the Epic Games Store, open the game’s library page, open the three-dot menu, and choose Verify. On Battle.net, select the game, open the gear menu next to the Play button, and choose Scan and Repair. Let the check finish completely before you launch the game again, even if it looks like it is only checking a small number of files, because a single damaged file can be enough to crash the game at the same spot every time.
If the verification reports files that failed to validate and downloads replacements, that is a strong sign you found the problem. If it reports everything is fine, move on to the next step, because the game files themselves are healthy and the cause lies elsewhere.
Step 2: Update the Graphics Driver and Windows
Outdated or damaged graphics drivers are a frequent trigger for access violation crashes, because the driver sits between the game and the hardware and a bad driver can feed the game memory it cannot use. Start by checking for a driver update from the official source for your card: the NVIDIA app or the NVIDIA driver download page for GeForce cards, and the AMD Software application or the AMD driver support page for Radeon cards. Choose a clean installation if the installer offers one, because it removes the old driver files before installing the new ones instead of layering new files over damaged ones.
Windows updates matter too, because Microsoft ships fixes for system components that games rely on. Open Settings, go to Windows Update, and install any pending updates, then restart the computer even if Windows does not ask you to, so the new files are actually loaded. While you are there, check the game’s own launcher for a pending game patch, since developers regularly fix crash bugs that look exactly like this error.
If the crash started right after a driver update, the new driver may be the problem rather than the fix. In that case, roll the driver back to the previous version from Device Manager, or reinstall the version you were using before, and test again before trying anything more drastic.
Step 3: Repair Windows System Files
If the game files and drivers are healthy, the next suspect is Windows itself. Microsoft documents a two-command repair sequence for damaged system files, and the order matters: the first command repairs the Windows component store, and the second command then checks the protected system files against it.
Open Windows Terminal or Command Prompt as an administrator. Right-click the Start button, choose Terminal (Admin) or Command Prompt (Admin), and confirm the permission prompt. Run the following command first and wait for it to finish:
DISM.exe /Online /Cleanup-Image /RestoreHealth
When it completes, run the second command:
sfc /scannow
The System File Checker scans protected Windows files and replaces any that are damaged with correct copies. Let both commands finish fully, which can take several minutes, and restart the computer if either one asks you to. If the scan reports that it found and repaired corrupt files, test the game again. If it reports no integrity violations, Windows system files are not the cause, and you can move on.
Step 4: Test the Memory
Failing or unstable memory is the leading hardware cause of this error, and the clue is breadth: different games crash at different times, or programs other than games crash too, or the computer occasionally freezes. Windows includes a built-in tester for this. Press the Windows key and R together, type mdsched.exe, and press Enter to open Windows Memory Diagnostic. Choose Restart now and check for problems, and the computer will reboot into the test. Let it run to completion and read the result after the computer restarts.
If the diagnostic reports errors, the memory itself is the problem, and no amount of reinstalling games will fix it. Try reseating the memory modules first: power the computer off completely, unplug it, open the case, remove each module, and reinstall it firmly until the clips click. If you have more than one module, test them one at a time to find the faulty one. Also consider whether the crash began after enabling a memory overclock or an XMP or EXPO profile in the BIOS, because aggressive memory settings can make otherwise healthy memory unstable; returning memory settings to their defaults is a fair test before buying replacement parts.
Step 5: Remove Conflicting Software and Try a Clean Boot
Overlays, recording tools, RGB utilities, and third-party antivirus software all inject themselves into games, and any one of them can trigger an access violation. Start by closing overlay software before launching the game: the Steam overlay, the Discord overlay, the NVIDIA overlay, and similar tools can each be turned off in their own settings. Then close background utilities you do not need for the session, such as hardware monitoring tools and RGB control software, and test the game.
If the crash stops, turn the tools back on one at a time until the crash returns, and you will know exactly which program conflicts with the game. If you want a broader test, use a clean boot: press the Windows key and R, type msconfig, and press Enter. On the Services tab, tick Hide all Microsoft services, then disable the remaining services. On the Startup tab, open Task Manager and disable the startup items. Restart, test the game, and if it runs cleanly, re-enable services and startup items in small groups until the culprit returns. Remember to undo the clean boot afterwards by reopening msconfig and choosing Normal startup, or your computer will keep starting with everything disabled.
Step 6: Reinstall the Game as a Last Resort
If every step above has passed and the game still crashes with 0xc0000005, a clean reinstall is the last software fix worth trying. Uninstall the game through its launcher or through Settings and then Apps and Installed apps, and delete any leftover folders for the game in its install location if the uninstaller leaves them behind. This matters because a repair check only replaces files the launcher knows about, while leftover configuration or cache files can survive a verification and keep causing the same crash.
Install the game fresh, preferably on the same drive it was on before so you are not changing two variables at once, and launch it before restoring any mods, custom configuration files, or saved settings. If the clean game runs without crashing, add your mods and settings back one at a time. If the crash returns only after a particular mod or configuration file, you have found the cause. If a clean install of the game still crashes with the same code, the problem is almost certainly outside the game: a driver, Windows, or hardware, and it is time to revisit the earlier steps or consider professional help rather than reinstalling again.
How to Check the Fix Worked
A single crash-free session is not proof that the problem is gone, because access violation crashes can be intermittent. Test properly by playing the game the way you normally play it, in the same mode and on the same map or area where it used to crash, for at least one full session. If the crash used to happen within minutes of launching, a single hour of stable play is a good sign. If it used to happen after an hour or more, play for longer than that before declaring victory.
Keep an eye on Event Viewer as well. Open it, go to Windows Logs and then Application, and look for new entries with the exception code 0xc0000005 for the game. No new entries across several sessions means the fix held. If a new entry appears, note the faulting module name and the time, because it tells you whether the same cause returned or a different one appeared. And if the crashes continue after all six steps, write down the pattern: which games crash, when it started, and what changed on the computer just before it started. That pattern is exactly what a repair technician or a support forum will need, and it saves you from repeating steps you have already ruled out.
Common Mistakes
- Reinstalling the game first: a fresh install takes far longer than verifying files or updating a driver, and it rarely fixes a problem that a verification would have caught in minutes.
- Skipping the restart after driver and Windows updates: new drivers and system files only load when the computer restarts, so testing before a restart can make a good fix look like it failed.
- Editing the registry based on random advice: Microsoft and community guidance both warn that registry edits without a documented cause can create new problems, and they do not fix damaged files or bad memory.
- Assuming one crash means bad RAM: a single game crashing usually points at that game or its drivers. Memory is the prime suspect only when several unrelated programs crash, or when a memory test actually reports errors.
- Ignoring the faulting module: the crash details in Event Viewer name the file where the violation happened, and that name often points straight at the cause. Guessing without looking wastes the best clue Windows gives you.
Frequently Asked Questions
Can 0xc0000005 be caused by a game bug?
Yes. A bug in the game itself can make it read memory it should not touch, and no fix on your computer will cure that. If the crash happens at the same spot for many players and started after a game update, check the game’s official support pages or patch notes for a known issue and wait for a fix from the developer.
Does 0xc0000005 mean my RAM is broken?
Not necessarily. Bad memory is one possible cause, and it becomes likely when several unrelated programs crash or a memory diagnostic reports errors. When only one game crashes, damaged game files or a driver problem are more common, so test those first before blaming the hardware.
Is it safe to run sfc /scannow?
Yes. The System File Checker is a built-in Microsoft tool that only scans protected Windows files and replaces damaged ones with correct copies from the component store. Run it from an administrator Command Prompt or Terminal, and run the DISM command first so the component store it checks against is healthy.
Why does the game crash only sometimes with this error?
Access violations depend on what the game is doing at the time, so the crash may only happen in a specific area, after a certain amount of play, or when a particular feature loads. Intermittent crashes are still worth fixing the same way, but you need a longer test session to be sure the fix worked.