Windows Stop Code (Blue Screen) Fix Guide: CRITICAL_PROCESS_DIED, MEMORY_MANAGEMENT, 0xC000021A & More
Fix Windows stop codes like 0xC000021A, MEMORY_MANAGEMENT, and CRITICAL_PROCESS_DIED with step-by-step repair commands, SFC, DISM, and driver fixes.
- Windows stop codes (BSODs) are caused by hardware failures, corrupt system files, faulty drivers, or bad memory — identifying the exact stop code narrows the fix.
- Stop code 0xC000021A and CRITICAL_PROCESS_DIED typically indicate corrupt Windows system files or failed critical services; SFC /scannow and DISM restore health in most cases.
- MEMORY_MANAGEMENT, PFN_LIST_CORRUPT, and NONPAGED_AREA errors point to RAM issues — run Windows Memory Diagnostic or MemTest86 and check for overclocking instability.
- Driver-related stop codes (DPC_WATCHDOG_VIOLATION, TDR_FAILURE, nvlddmkm.sys, DRIVER_POWER_STATE_FAILURE) require rolling back or cleanly reinstalling the offending driver.
- Quick fix summary: Boot into Safe Mode, run 'sfc /scannow' followed by DISM, update or roll back drivers, check RAM with mdsched.exe, and run CHKDSK on the system drive.
| Method | When to Use | Time | Risk |
|---|---|---|---|
| SFC /scannow | Corrupt or missing Windows system files causing BSOD on boot or use | 5–15 min | Low |
| DISM RestoreHealth | SFC reports errors it cannot fix; component store corruption | 15–30 min | Low |
| Windows Memory Diagnostic (mdsched.exe) | MEMORY_MANAGEMENT, PFN_LIST_CORRUPT, NONPAGED_AREA stop codes | 20–60 min | None |
| Driver Rollback / Clean Install | DPC_WATCHDOG, TDR_FAILURE, nvlddmkm.sys, DRIVER_POWER_STATE_FAILURE | 10–20 min | Low |
| CHKDSK /f /r | NTFS_FILE_SYSTEM, UNMOUNTABLE_BOOT_VOLUME, INACCESSIBLE_BOOT_DEVICE | 30–120 min | Low |
| Startup Repair (WinRE) | Cannot boot at all; 0xC000021A, PROCESS1_INITIALIZATION_FAILED | 10–30 min | Low |
| System Restore | Stop codes began after a Windows Update or software install | 15–30 min | Low–Med |
| Reset / Reinstall Windows | All other fixes failed; severe file or registry corruption | 60–180 min | High (data loss risk) |
Understanding Windows Stop Codes
A Windows stop code — commonly called a Blue Screen of Death (BSOD) — is a kernel-level error that forces Windows to halt to prevent data corruption or hardware damage. Each stop code is a hexadecimal identifier (e.g., 0x0000007B) paired with a human-readable name (e.g., INACCESSIBLE_BOOT_DEVICE). Since Windows 8, Microsoft has simplified the display to show only the text name and a QR code linking to support documentation.
Every BSOD writes a minidump file to C:\Windows\Minidump\ and a full memory dump to C:\Windows\MEMORY.DMP. Analyzing these files is the most reliable way to identify root causes.
Common Windows Stop Codes and Their Meanings
0xC000021A / c000021a / 21a / oxc000021a
Error message: "Your PC ran into a problem and needs to restart. STOP CODE: 0xC000021A" This indicates a fatal error in the Windows subsystem (Winlogon.exe or Csrss.exe). Causes include corrupt system files, mismatched DLLs after a failed update, or malware.
CRITICAL_PROCESS_DIED / critical_process_died
A Windows kernel process (e.g., System, smss.exe, wininit.exe) terminated unexpectedly. Often triggered by corrupt drivers or system files.
MEMORY_MANAGEMENT / memory_management
Stop code 0x0000001A. Points to a serious error in Windows memory management — bad RAM modules, corrupt page file, or driver writing to invalid memory locations.
PFN_LIST_CORRUPT / pfn_list_corrupt
Stop code 0x0000004E. The Page Frame Number database is corrupt — almost always caused by failing RAM, a bad driver, or a storage controller issue.
INACCESSIBLE_BOOT_DEVICE / boot device inaccessible
Stop code 0x0000007B. Windows cannot read the boot drive. Causes: missing or corrupt storage drivers, BIOS SATA mode change (IDE ↔ AHCI), failed Windows Update, or a failing drive.
DPC_WATCHDOG_VIOLATION
Stop code 0x00000133. A Deferred Procedure Call ran too long. Usually caused by an outdated or incompatible driver, particularly SSD firmware or NVMe drivers.
KERNEL_SECURITY_CHECK_FAILURE / kernel_security_check_failure
Stop code 0x00000139. A kernel data structure violation was detected. Often caused by outdated drivers, incompatible software, or corrupted system files.
DRIVER_POWER_STATE_FAILURE / driver power state failure
Stop code 0x0000009F. A driver did not complete its power transition in time during sleep/wake cycles. Graphics and network drivers are common culprits.
TDR_FAILURE / nvlddmkm.sys
Stop code 0x00000116. The graphics driver failed to recover from a timeout. The file nvlddmkm.sys points specifically to an NVIDIA driver issue.
NTFS_FILE_SYSTEM / ntfs sys
Stop code 0x00000024. A problem occurred with the NTFS file system driver. Usually indicates drive corruption or a failing hard disk.
UNMOUNTABLE_BOOT_VOLUME
Stop code 0x000000ED. Windows cannot mount the boot volume. Causes include file system corruption or storage driver incompatibility.
CLOCK_WATCHDOG_TIMEOUT
Stop code 0x00000101. An expected interrupt from a secondary processor was not received. Common with overclocking or defective CPUs.
BAD_POOL_CALLER
Stop code 0x000000C2. A kernel-mode process made an illegal memory pool request — usually a driver bug.
PROCESS1_INITIALIZATION_FAILED
Stop code 0x0000006B. The initial process failed to initialize. Similar root causes to 0xC000021A.
Step-by-Step Troubleshooting
Step 1: Note the Exact Stop Code
When the BSOD appears, write down or photograph:
- The stop code name (e.g., MEMORY_MANAGEMENT)
- Any filename mentioned (e.g., nvlddmkm.sys, netio.sys, ntfs.sys)
- The hexadecimal code (e.g., 0x0000001A)
If the system reboots too quickly, go to Settings > System > About > Advanced system settings > Startup and Recovery and uncheck "Automatically restart" to keep the BSOD on screen.
Step 2: Boot into Safe Mode
If Windows won't start normally:
- Power the machine on and off 3 times during boot to trigger Windows Recovery Environment (WinRE).
- Navigate to Troubleshoot > Advanced Options > Startup Settings > Restart.
- Press F4 for Safe Mode or F6 for Safe Mode with Networking.
Alternatively, from a working Windows session: Press Win+R, type msconfig, go to the Boot tab, check Safe boot, and restart.
Step 3: Run System File Checker and DISM
Open Command Prompt as Administrator and run:
sfc /scannow
If SFC reports it cannot fix errors, run DISM:
DISM /Online /Cleanup-Image /RestoreHealth
Then run SFC again. Restart after completion.
Step 4: Check and Repair the Boot Drive
For NTFS_FILE_SYSTEM, UNMOUNTABLE_BOOT_VOLUME, or INACCESSIBLE_BOOT_DEVICE:
chkdsk C: /f /r /x
Schedule for next reboot when prompted. This scans and repairs file system errors and bad sectors.
Step 5: Test RAM
For MEMORY_MANAGEMENT or PFN_LIST_CORRUPT:
- Press Win+R, type
mdsched.exe, and choose "Restart now and check for problems". - For thorough testing, boot MemTest86 from a USB drive and run at least 2 full passes.
- If errors are found, reseat RAM sticks, test each stick individually, and replace any faulty module.
Step 6: Update or Roll Back Drivers
For driver-related stop codes (DPC_WATCHDOG, TDR_FAILURE, nvlddmkm.sys):
- Open Device Manager, right-click the suspect device (often Display Adapters or Network Adapters), and select Roll Back Driver.
- If rolling back is unavailable, use Display Driver Uninstaller (DDU) in Safe Mode for GPU drivers, then install the latest stable version from the manufacturer.
- For NVIDIA nvlddmkm.sys, download the driver from nvidia.com and perform a clean installation (check "Perform a clean installation").
Step 7: Use Startup Repair for 0xC000021A
If 0xC000021A prevents booting:
- Boot from Windows installation media (USB/DVD).
- Select Repair your computer > Troubleshoot > Advanced Options > Startup Repair.
- Let it complete automatically.
- If that fails, open Command Prompt from WinRE and run:
bootrec /fixmbr,bootrec /fixboot,bootrec /scanos,bootrec /rebuildbcd.
Step 8: Analyze Minidump Files
Install WinDbg (from Microsoft Store or Windows SDK) and open the minidump:
- Go to File > Open Crash Dump and navigate to
C:\Windows\Minidump\. - Type
!analyze -vin the command window. - Look for "PROBABLY_CAUSED_BY" to identify the driver or module responsible.
Step 9: System Restore or Reset
If stop codes started after a Windows Update:
- Go to Settings > Update & Security > Recovery > Open System Restore and roll back to a point before the update.
- As a last resort, use Reset this PC (keeping or removing files) from the Recovery menu.
Special Cases
Windows stop code after update: Use DISM to uninstall the problematic update:
wusa /uninstall /kb:XXXXXXX
Replace XXXXXXX with the KB number shown in Windows Update history.
Keep getting Windows stop code (recurring BSODs): Check Event Viewer (eventvwr.msc) > Windows Logs > System for Critical and Error events logged just before each crash. Cross-reference timestamps with minidump files.
Stop code with QR code: Scan the QR code or visit aka.ms/stopcode for Microsoft's official page for that specific code.
CLOCK_WATCHDOG_TIMEOUT: Disable any CPU or RAM overclocking in BIOS/UEFI. Reset to default (JEDEC) memory timings.
WDF_VIOLATION: Update or roll back Windows Driver Framework components and check for Windows Update patches targeting this error.
Frequently Asked Questions
# ============================================================
# Windows Stop Code Diagnostic & Repair Script
# Run in an elevated Command Prompt (Run as Administrator)
# ============================================================
:: STEP 1: Check system file integrity
echo Running System File Checker...
sfc /scannow
:: STEP 2: Repair Windows component store
echo Running DISM health restore...
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
:: STEP 3: Check and repair the boot volume (schedule on next boot)
echo Scheduling CHKDSK on next restart...
chkdsk C: /f /r /x
:: STEP 4: Check for RAM issues (opens GUI scheduler)
echo Launching Windows Memory Diagnostic...
start mdsched.exe
:: STEP 5: View recent critical errors in Event Log
echo Querying recent System critical events...
wevtutil qe System /c:20 /rd:true /f:text /q:"*[System[(Level=1 or Level=2)]]" > %USERPROFILE%\Desktop\CriticalErrors.txt
echo Critical errors saved to Desktop\CriticalErrors.txt
:: STEP 6: List minidump files for analysis
echo Recent minidump files:
dir C:\Windows\Minidump\*.dmp /o:-d /b
:: STEP 7: Export installed drivers list for review
echo Exporting driver list...
driverquery /v /fo csv > %USERPROFILE%\Desktop\DriverList.csv
echo Driver list saved to Desktop\DriverList.csv
:: STEP 8: Check BCD store integrity (for boot-related stop codes)
echo Checking Boot Configuration Data...
bcdedit /enum all
:: STEP 9: Verify boot files (run in WinRE if system won't start)
:: bootrec /fixmbr
:: bootrec /fixboot
:: bootrec /scanos
:: bootrec /rebuildbcd
:: STEP 10: Uninstall a specific Windows Update by KB number
:: Replace XXXXXXX with the actual KB number (e.g., KB5034441)
:: wusa /uninstall /kb:XXXXXXX /quiet /norestart
:: STEP 11: PowerShell - Find the most recent BSOD event
powershell -Command "Get-WinEvent -FilterHashtable @{LogName='System'; Id=41} | Select-Object -First 5 | Format-List TimeCreated, Message"
:: STEP 12: Enable verbose BSOD (disable auto-restart to read stop code)
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v AutoReboot /t REG_DWORD /d 0 /f
echo Auto-restart on BSOD has been disabled. System will now pause on blue screen.
echo ============================================================
echo Diagnostic complete. Review output files on your Desktop.
echo Restart the computer to apply CHKDSK and Memory Diagnostic.
echo ============================================================
pauseError Medic Editorial
The Error Medic Editorial team consists of senior DevOps and SRE engineers with over a decade of experience diagnosing Windows kernel failures, BSOD analysis, and enterprise system recovery. Our guides are tested on real hardware across Windows 10 and Windows 11 environments and draw on official Microsoft documentation, WinDbg analysis techniques, and community-verified solutions.
Sources
- https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
- https://learn.microsoft.com/en-us/windows/client-management/system-failure-recovery-options
- https://support.microsoft.com/en-us/windows/fix-a-blue-screen-error-stop-error-in-windows-0xc000021a-0xc0000034-f0b71d9b-2b43-4f8d-ab95-0f60ba5fc8bb
- https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/analyzing-a-kernel-mode-dump-file
- https://answers.microsoft.com/en-us/windows/forum/all/blue-screen-stop-code-0xc000021a/
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sfc
- https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-recovery-environment--windows-re--technical-reference