Critical Operating Systems ✓ Solution Verified by Community (0+ upvotes)

How to fix error 0x00000004 in Windows 11

Bug Check 0x00000004: INVALID_DATA_ACCESS_TRAP — An invalid data access trap occurred.

65% success rate
👥 0+ users verified
📅 Updated: 2026-08-12
⏱️ 90 min read
Fix based on community reports and expert analysis. Last verified: 2026-08-12 · How we verify fixes
Error Code0x00000004
Affected SystemWindows 11 (Microsoft)
DifficultyCritical
Estimated Time90 min
Requires Admin Rights⚠️ Yes
Requires Reboot🔄 Yes

Solution Steps

  1. 1 Press Windows key + R, type 'mdsched.exe', and press Enter. Choose 'Restart now and check for problems'. Windows will run a memory test after restart. This can take 20-30 minutes. If errors are found, your RAM is faulty and needs replacement.
  2. 2 Press Windows key + X and select 'Device Manager'. Expand 'Display adapters', 'Network adapters', and other device categories. Look for devices with yellow exclamation marks. Right-click and select 'Update driver' or 'Uninstall device' (then restart). Faulty drivers can cause invalid memory access.
  3. 3 Open Command Prompt as administrator (Win+R, type 'cmd', Ctrl+Shift+Enter). Type 'sfc /scannow' and press Enter. This repairs corrupted system files. Restart after completion.
  4. 4 If SFC found issues, run 'DISM /Online /Cleanup-Image /RestoreHealth' in the same Command Prompt. This repairs the system image. Restart after completion.
  5. 5 If you overclocked your RAM or CPU, reset your BIOS to default settings. Restart, enter BIOS (Del, F2, F12), and load optimized defaults. Save and exit.
  6. 6 Check for Windows updates: Press Windows key + I to open Settings, go to 'Windows Update', and click 'Check for updates'. Install all updates, as they may include driver fixes.
  7. 7 If the error persists, test your RAM with a more thorough tool like MemTest86. Download it to a USB drive, boot from it, and let it run for several passes. If errors appear, replace the faulty RAM module.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Still having issues?

Describe your exact problem to Error Buddy and get a personalized fix in seconds.

🛠️ Try Error Buddy — It's Free