This guide walks you through the most effective ways to resolve the “memory could not be written” error in Windows 11. This error typically appears as a pop-up dialog box, often when launching or using a specific application, and it can be caused by faulty RAM, driver issues, corrupted system files, or software conflicts. You’ll find step-by-step instructions for each fix, from simple restarts to more advanced system repairs.
What You’ll Need
- Administrator access to your Windows 11 PC
- Your Windows installation media (USB or DVD) or access to the Windows Recovery Environment (WinRE) – needed for some advanced fixes
- Patience – some steps may take several minutes to complete
Step-by-Step
- Restart Your Computer
A simple restart can clear temporary glitches that cause memory errors. Save any open work, close all apps, and choose Restart from the Start menu. - Run Windows Memory Diagnostic
Press Win + R, typemdsched.exe, and press Enter. Choose “Restart now and check for problems.” Windows will reboot and run a memory test. After it finishes, your PC restarts automatically. If errors are found, you’ll need to replace the faulty RAM module(s). - Update Device Drivers
Outdated or corrupt drivers, especially graphics and chipset drivers, can trigger memory errors. Open Device Manager (right-click Start > Device Manager). Expand categories, right-click each device, and select “Update driver.” Choose “Search automatically for drivers.” Repeat for all devices, especially Display adapters, Sound, and Network adapters. Restart your PC after updating. - Run System File Checker (SFC) and DISM
Corrupted system files are a common cause. Open Command Prompt as administrator (right-click Start > Terminal (Admin)). Runsfc /scannowand wait for it to complete. Then runDISM /Online /Cleanup-Image /RestoreHealth. This may take 15-20 minutes. Restart your PC after both commands finish. - Check for Windows Updates
Go to Settings > Windows Update and click “Check for updates.” Install any pending updates, including optional ones under “Advanced options.” Restart your PC after updates install. - Run the Application in Compatibility Mode
If the error occurs with a specific program, right-click its shortcut, select Properties > Compatibility tab. Check “Run this program in compatibility mode for” and select a previous Windows version (e.g., Windows 10). Also check “Run this program as an administrator.” Apply and try launching the app. - Disable Fast Startup
Fast Startup can cause memory issues after shutdown. Go to Control Panel > Power Options > Choose what the power buttons do. Click “Change settings that are currently unavailable,” uncheck “Turn on fast startup,” and save changes. Restart your PC. - Perform a Clean Boot
This isolates conflicting background services. Press Win + R, typemsconfig, and go to the Services tab. Check “Hide all Microsoft services,” then click “Disable all.” Go to the Startup tab and click “Open Task Manager.” Disable all startup items. Restart your PC. If the error disappears, re-enable services one by one to find the culprit. - Reset or Reinstall the Problematic Application
If the error is tied to a specific app, try resetting it: Settings > Apps > Installed apps, find the app, click the three dots, and choose “Advanced options.” Click “Reset.” If that fails, uninstall and reinstall the app. - Use Windows Recovery Environment (WinRE) to Repair
If none of the above works, boot into WinRE (hold Shift while clicking Restart). Go to Troubleshoot > Advanced options > Startup Repair. Let it run. If that doesn’t help, try System Restore (if available) to revert to a point before the error started.
Common Mistakes
- Skipping the memory diagnostic – If your RAM is physically faulty, no software fix will help. Always run the test first.
- Not updating drivers in the right order – Update chipset drivers before graphics drivers to avoid conflicts.
- Running SFC without DISM – SFC may fail if the system image is corrupt; DISM fixes the image first.
- Ignoring compatibility mode – Many older apps still need it, even on Windows 11.
- Forgetting to disable Fast Startup – This hidden setting can cause memory errors after shutdown.
Tips
- Keep your system clean – Regularly run Disk Cleanup and uninstall unused programs to reduce memory pressure.
- Monitor memory usage – Use Task Manager (Ctrl+Shift+Esc) to see which apps consume the most RAM. If one app consistently spikes, consider an alternative.
- Create a restore point – Before making major changes, create a system restore point (Control Panel > Recovery > Configure System Restore).
- Use the Windows 11 built-in troubleshooters – Go to Settings > System > Troubleshoot > Other troubleshooters and run the “Program Compatibility Troubleshooter” for the problematic app.
- Check for overheating – High temperatures can cause memory errors. Ensure your PC’s fans are working and vents are clear.
Troubleshooting
If the error persists after all steps:
- Test RAM with MemTest86 – Download MemTest86 (free version) to a USB drive, boot from it, and run a full memory test. This is more thorough than Windows’ built-in tool.
- Check for malware – Run a full scan with Windows Security (or your preferred antivirus). Malware can cause memory corruption.
- Check the Event Viewer – Press Win + X and select “Event Viewer.” Under Windows Logs > System, look for errors with source “MemoryDiagnostics-Results” or “Application Error.” The details may point to the specific faulting module.
- Perform a repair upgrade – Download the Windows 11 ISO from Microsoft, mount it, and run setup.exe. Choose “Keep personal files and apps.” This reinstalls Windows while preserving your data.
- If all else fails, reset Windows – Go to Settings > System > Recovery > Reset PC. Choose “Keep my files” to reinstall Windows without losing personal data (but back up anyway).
Frequently Asked Questions
What exactly does “memory could not be written” mean?
It means a program tried to write data to a memory address that was invalid or inaccessible. This can be due to software bugs, driver issues, or faulty RAM.
Can I fix this error without restarting my PC?
Sometimes. You can try closing the offending app and reopening it, but a restart is often necessary to clear the memory state.
Will this error damage my computer?
No, the error itself won’t damage hardware, but if it’s caused by faulty RAM, the RAM may fail eventually. Replace it promptly.
Why does this error only happen with one specific program?
That program likely has a bug or is incompatible with Windows 11. Try compatibility mode, updating the app, or contacting the developer.
Is it safe to use my PC after seeing this error?
Yes, but save your work and restart to avoid data loss. If the error occurs frequently, address the underlying cause.
Do I need to reinstall Windows if nothing else works?
Not necessarily. Try a repair upgrade first, which keeps your files. Only as a last resort should you reset or reinstall.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Turn Off Shutter Sound on iPhone
- VPN Setup on iPhone SE: Step-by-Step Guide
- Fix Internet Not Working on Windows 11
- Fix Right Click Not Working in Firefox
- Compare Two Columns with Comma Separated Values in Excel
- How to Limit Ad Tracking on iPhone Apps