Microsoft Windows Stop Code Errors: Complete Troubleshooting Guide (Including MEMORY_MANAGEMENT Fix)
Fix Microsoft Windows Stop Code errors including MEMORY_MANAGEMENT BSODs. Step-by-step diagnostics, commands, and proven solutions to restore system stability.
- Windows Stop Code errors (Blue Screen of Death / BSOD) are triggered by critical system faults in drivers, hardware, or memory — the stop code itself identifies the specific failure category.
- MEMORY_MANAGEMENT (Stop Code 0x0000001A) is among the most common, caused by faulty RAM, corrupt page files, outdated drivers, or incompatible software.
- Quick fix summary: Run Windows Memory Diagnostic or MemTest86 to check RAM, update or roll back drivers via Device Manager, run 'sfc /scannow' and 'DISM /Online /Cleanup-Image /RestoreHealth' from an elevated Command Prompt, then check Event Viewer for the exact faulting module before replacing hardware.
| Method | When to Use | Time | Risk |
|---|---|---|---|
| Windows Memory Diagnostic (mdsched.exe) | First step when Stop Code mentions MEMORY_MANAGEMENT or IRQL errors | 15–30 min | Low — read-only test, no changes made |
| MemTest86 (bootable USB) | When built-in diagnostic passes but crashes persist; deeper RAM testing needed | 2–8 hours | Low — external tool, no system changes |
| SFC /scannow + DISM RestoreHealth | Corrupt system files suspected; Stop Code varies across reboots | 20–40 min | Low — repairs system files using Windows Update source |
| Driver rollback or update via Device Manager | Stop Code follows a recent Windows Update or new hardware installation | 5–15 min | Medium — incorrect driver version can worsen stability |
| Page file reset to system-managed | MEMORY_MANAGEMENT crash after manual virtual memory changes | 5 min | Low — reversible setting change |
| Clean Boot (MSConfig) | Software conflict or third-party service causing BSODs | 10 min setup + testing | Low — disables non-Microsoft services temporarily |
| Startup Repair / System Restore | System fails to boot after updates or major changes | 30–60 min | Medium — restore point may revert desired changes |
| RAM replacement | MemTest86 reports uncorrectable errors on specific memory module | 30–60 min | High — irreversible hardware change; verify diagnosis first |
Understanding Microsoft Windows Stop Code Errors
A Windows Stop Code — commonly called a Blue Screen of Death (BSOD) — appears when the Windows kernel encounters a condition so severe it cannot safely continue running. Microsoft surfaces these at https://www.microsoft.com/en-us/windows/stop-code and through the Windows Error Reporting portal. The blue screen displays a human-readable stop code name (e.g., MEMORY_MANAGEMENT) alongside a hexadecimal code (e.g., 0x0000001A) and, when available, the name of the offending driver or module.
Common Stop Codes and What They Mean
- MEMORY_MANAGEMENT (0x0000001A) — A severe memory management error; most often faulty RAM, corrupt page file, or a driver accessing invalid memory addresses.
- PAGE_FAULT_IN_NONPAGED_AREA (0x00000050) — System tried to access memory that doesn't exist; linked to bad RAM, corrupt drivers, or antivirus conflicts.
- IRQL_NOT_LESS_OR_EQUAL (0x0000000A) — A driver attempted to access memory at an illegal IRQL; almost always a driver bug.
- SYSTEM_SERVICE_EXCEPTION (0x0000003B) — An exception occurred while executing a routine that transitions from non-privileged to privileged code.
- CRITICAL_PROCESS_DIED (0x000000EF) — A critical system process (e.g., lsass.exe, csrss.exe) terminated unexpectedly.
- DRIVER_IRQL_NOT_LESS_OR_EQUAL (0x000000D1) — Network or storage driver accessing paged memory at elevated IRQL.
- KERNEL_SECURITY_CHECK_FAILURE (0x00000139) — Data structure corruption detected; often caused by overclocking or faulty RAM.
Step 1: Read the Stop Code and Gather Information
When a BSOD occurs, Windows briefly displays the stop code before rebooting. If the system reboots too quickly:
Disable automatic restart on failure:
- Right-click This PC → Properties → Advanced system settings → Startup and Recovery → Settings.
- Uncheck Automatically restart under System failure.
- Click OK.
Check Event Viewer for crash details:
- Press
Win + R, typeeventvwr.msc, press Enter. - Navigate to Windows Logs → System.
- Filter by Critical and Error events around the crash time.
- Look for Event ID 41 (unexpected shutdown) and Event ID 1001 (BugCheck).
- The BugCheck event contains the exact stop code and parameters.
- Press
Read the minidump file:
- Minidumps are stored at
C:\Windows\Minidump\. - Use WinDbg (Windows Debugger, available from Microsoft Store or Windows SDK) to analyze them.
- After opening WinDbg, run:
!analyze -vto get a full analysis of the most recent dump.
- Minidumps are stored at
Step 2: Run System File Checker and DISM
Corrupt Windows system files are a frequent but easily overlooked cause of stop code errors.
Open an elevated Command Prompt (Run as Administrator) and execute:
sfc /scannow
Wait for the scan to complete (it may take 10–20 minutes). If it reports violations that it could not fix, run DISM to repair the Windows component store:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
After DISM completes, run sfc /scannow a second time and then reboot.
Step 3: Test Your RAM
For MEMORY_MANAGEMENT and related stop codes, RAM is the primary suspect.
Using Windows Memory Diagnostic (quick test):
- Press
Win + R, typemdsched.exe, press Enter. - Choose Restart now and check for problems.
- The tool runs automatically on reboot and reports errors in Event Viewer under Windows Logs → System (search for source
MemoryDiagnostics-Results).
Using MemTest86 (thorough test — recommended):
- Download MemTest86 from https://www.memtest86.com/.
- Create a bootable USB using the provided image tool.
- Boot from the USB and let it run for at least two full passes (ideally overnight).
- Any errors reported indicate faulty RAM. Note which slot/module fails.
- Remove and replace the failing module. Test each stick individually to isolate the bad one.
Step 4: Update, Rollback, or Remove Problematic Drivers
Driver bugs are responsible for a large percentage of stop codes. Use the following approach:
- Identify the faulting driver from WinDbg output — look for lines like
Probably caused by: nvlddmkm.sys(NVIDIA display driver) orntoskrnl.exe. - Update drivers via Device Manager:
- Press
Win + X→ Device Manager. - Right-click suspect devices (especially Display Adapters, Network Adapters, Storage Controllers) → Update driver.
- Press
- Roll back a recently updated driver:
- In Device Manager, right-click the device → Properties → Driver tab → Roll Back Driver.
- Use DDU (Display Driver Uninstaller) for GPU driver issues — boot into Safe Mode and run DDU to completely remove the current GPU driver before installing a fresh copy.
Step 5: Reset the Virtual Memory / Page File
A corrupted or misconfigured page file can cause MEMORY_MANAGEMENT crashes.
- Right-click This PC → Properties → Advanced system settings.
- Under Performance, click Settings → Advanced tab → Change (under Virtual memory).
- Check Automatically manage paging file size for all drives.
- Click OK and restart.
Alternatively, to delete and recreate the page file:
- Uncheck automatic management, select No paging file, click Set, and reboot.
- After reboot, re-enable automatic management and reboot again.
Step 6: Check for Overheating and Hardware Issues
Thermal throttling and hardware faults can cause intermittent stop codes:
- Use HWMonitor or Core Temp to check CPU and GPU temperatures under load.
- Inspect Event Viewer for WHEA (Windows Hardware Error Architecture) events — Event Source:
WHEA-Logger, Event ID: 17 or 18 indicate hardware errors. - Run chkdsk on the system drive to rule out storage issues:
(Schedule for next reboot if drive is in use.)chkdsk C: /f /r /x
Step 7: Perform a Clean Boot to Isolate Software Conflicts
- Press
Win + R, typemsconfig, press Enter. - On the Services tab, check Hide all Microsoft services, then click Disable all.
- On the Startup tab, open Task Manager and disable all startup items.
- Click OK and restart.
- If the BSOD stops, re-enable services/startup items in batches to find the culprit.
Step 8: Use Startup Repair or System Restore (Last Resort Before Reinstall)
- Boot from Windows installation media (USB or DVD).
- Select Repair your computer → Troubleshoot → Startup Repair.
- If Startup Repair fails, try System Restore to revert to a known-good restore point.
- As a final option before clean install, use Reset this PC (keep files option available) from Settings → System → Recovery.
Frequently Asked Questions
# ============================================================
# Windows Stop Code Diagnostic Script
# Run in an elevated PowerShell window (Run as Administrator)
# ============================================================
Write-Host "=== Step 1: System File Checker ===" -ForegroundColor Cyan
sfc /scannow
Write-Host ""
Write-Host "=== Step 2: DISM Component Store Health ===" -ForegroundColor Cyan
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
Write-Host ""
Write-Host "=== Step 3: Check for Recent BugCheck Events in Event Viewer ===" -ForegroundColor Cyan
Get-WinEvent -LogName System -MaxEvents 200 | Where-Object { $_.Id -eq 41 -or $_.Id -eq 1001 } | Format-List TimeCreated, Id, Message
Write-Host ""
Write-Host "=== Step 4: List Minidump Files ===" -ForegroundColor Cyan
$minidumpPath = "C:\Windows\Minidump"
if (Test-Path $minidumpPath) {
Get-ChildItem -Path $minidumpPath -Filter "*.dmp" | Sort-Object LastWriteTime -Descending | Select-Object Name, LastWriteTime, Length
} else {
Write-Host "No minidump folder found. Enable small memory dumps in System Properties." -ForegroundColor Yellow
}
Write-Host ""
Write-Host "=== Step 5: Schedule CHKDSK on Next Reboot (C: drive) ===" -ForegroundColor Cyan
chkdsk C: /f /r /x
# If drive is busy, answer Y to schedule on next reboot
Write-Host ""
Write-Host "=== Step 6: Check WHEA Hardware Error Events ===" -ForegroundColor Cyan
Get-WinEvent -LogName "System" -MaxEvents 500 | Where-Object { $_.ProviderName -eq "Microsoft-Windows-WHEA-Logger" } | Format-List TimeCreated, Id, Message
Write-Host ""
Write-Host "=== Step 7: Export System Info for Further Analysis ===" -ForegroundColor Cyan
msinfo32 /report "$env:USERPROFILE\Desktop\SystemInfo.txt"
Write-Host "System info exported to Desktop\SystemInfo.txt"
Write-Host ""
Write-Host "=== Step 8: Check Driver Verifier Status ===" -ForegroundColor Cyan
verifier /query
Write-Host ""
Write-Host "=== Step 9: Enable Driver Verifier on All Drivers (Optional - causes BSOD on bad driver) ===" -ForegroundColor Yellow
Write-Host "Run the following ONLY if you want to force-detect faulty drivers:"
Write-Host " verifier /standard /all" -ForegroundColor Gray
Write-Host "To disable Driver Verifier after testing:"
Write-Host " verifier /reset" -ForegroundColor Gray
Write-Host ""
Write-Host "=== Step 10: Windows Memory Diagnostic (schedules on next reboot) ===" -ForegroundColor Cyan
$response = Read-Host "Schedule Windows Memory Diagnostic on next reboot? (Y/N)"
if ($response -eq 'Y' -or $response -eq 'y') {
Start-Process mdsched.exe
} else {
Write-Host "Skipped memory diagnostic."
}
Write-Host ""
Write-Host "=== Diagnostic Script Complete ===" -ForegroundColor Green
Write-Host "Review Event Viewer output above and check Desktop\SystemInfo.txt for additional details."Error Medic Editorial
The Error Medic Editorial team consists of senior DevOps engineers, SREs, and Windows systems administrators with 10+ years of experience diagnosing kernel-level crashes, memory faults, and production system failures. We specialize in translating cryptic system errors into actionable, step-by-step fixes backed by official documentation and real-world incident data.
Sources
- https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference
- https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-0x1a--memory-management
- https://support.microsoft.com/en-us/windows/blue-screen-errors-in-windows-d2d7b68a-de02-d05e-b9d4-7e50ba516e7f
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sfc
- https://www.memtest86.com/
- https://stackoverflow.com/questions/tagged/windows-bsod