How To Fix Memory Could Not Be Written Error In Windows (2026)
A Windows error box says the instruction at one address referenced memory at another address and the memory could not be written.
The program that showed it usually closes, and the same message can come back the next time you open it.
This guide uses Microsoft’s clean boot and Data Execution Prevention pages and Dell’s memory troubleshooting article.
Table of Contents
- Quick answer: find out whether one app or the whole PC is affected
- What the error means
- Which case do you have?
- Step 1: Restart and update
- Step 2: Perform a clean boot
- Return to normal startup afterward
- Step 3: Check Data Execution Prevention
- Step 4: Repair Windows files
- Step 5: Test the memory
- Check free space for virtual memory
- When to contact support
- Sources
- More Windows error guides
Quick answer: find out whether one app or the whole PC is affected
| Step | What to do | Best when |
|---|---|---|
| 1 | Restart, then update Windows and the app that shows the error | Always the first step |
| 2 | Perform a clean boot and test again | Another program may be interfering |
| 3 | Check Data Execution Prevention | One older program fails every time |
| 4 | Run SFC and DISM | Windows files may be damaged |
| 5 | Test the RAM | Many programs show errors or the PC crashes |
What the error means
The two addresses in the message change from PC to PC, so do not search for the numbers.
Microsoft says that when a program tries to run code from memory that Windows has marked non-executable, it gets an access violation exception and is terminated if nothing handles it.
That is one documented way a program can be stopped by a memory rule.
Dell separately lists on-screen memory errors, slow or unresponsive systems and STOP errors as symptoms of a memory problem.
The message alone does not tell you which cause applies, so the steps below start with the cheapest checks.
Which case do you have?
| What you see | Start with |
|---|---|
| One program shows the error every time | Update or reinstall that program, then the clean boot and DEP steps |
| Several different programs show it | Windows updates, SFC and DISM, then the memory test |
| The PC also blue screens or freezes | The memory test |
This table is our reading of the sources, not a rule from Microsoft or Dell.
Step 1: Restart and update
Close the program, restart the PC and open the program again.
Then open Settings > Windows Update and install everything offered.
Update the program itself, because Microsoft says most applications that are incompatible with DEP must be updated by their makers to work correctly.
If the error follows a new install, uninstall the program and install the latest version from its maker.
Step 2: Perform a clean boot
A clean boot starts Windows with only essential drivers and startup programs, which helps you find background software that conflicts with an app.
- Sign in as an administrator.
- Search for msconfig and open System Configuration.
- On the Services tab, check Hide all Microsoft services, click Disable all, then click Apply.
- On the Startup tab, click Open Task Manager.
- On the Startup apps tab, select each Enabled item and click Disable, and note what you turned off.
- Close Task Manager, click OK in System Configuration, then restart.
Open the program that failed and see whether the error appears.
If it no longer appears, Microsoft says another app or service is interfering, and you can find it by re-enabling half of the items at a time and restarting after each test.
If it still appears, Microsoft says to contact the software maker.
Return to normal startup afterward
Do not leave the PC in clean boot mode.
- Open msconfig and choose Normal Startup on the General tab.
- On the Services tab, clear Hide all Microsoft services and click Enable all.
- On the Startup tab, open Task Manager and enable the items you disabled.
- Click OK and restart.
Microsoft also warns that the advanced boot options in System Configuration should only be used with guidance from Microsoft support.
Step 3: Check Data Execution Prevention
DEP has been part of Windows since Windows XP and marks memory pages so that code cannot run from them.
Microsoft says programs that generate code while running must mark that memory as executable, or they can fail on systems using DEP.
That makes older or unusual programs the likeliest to trip it.
Our guide to turning off Data Execution Prevention in Windows shows where the setting lives.
Change it for one trusted program at most, because DEP is a security protection and Microsoft describes it as one layer among several.
Step 4: Repair Windows files
Our guide to running SFC and DISM in Windows 11 covers the commands for checking and repairing system files.
Run them from an administrator window and restart afterward.
Step 5: Test the memory
If many programs show the error, test the RAM.
Dell’s steps for its desktops are listed below, and its ePSA diagnostics include a Memtest.
| Dell step | What it involves |
|---|---|
| Run ePSA | Turn the PC off, hold Fn and press the power button, or tap F12 and choose Diagnostics |
| Let it finish | Hardware checks take about 15 to 20 minutes, and memory tests can exceed 30 minutes |
| Test one module at a time | Try each DIMM in every slot and record the results |
| Read the result | If the fault follows a module or a slot, that part is the cause |
If the fault appears with every module and slot, Dell says the memory or the slots may be faulty and you should contact support.
Dell advises skipping third-party diagnostic tools in favor of ePSA because they must be checked for compatibility with Dell hardware.
Check free space for virtual memory
Dell also says to check virtual memory settings and the drive that holds the paging file.
It recommends keeping 6 to 10 GB free on that drive and retesting.
It adds that more virtual memory is no substitute for more physical RAM.
When to contact support
Contact the program’s maker if the error stays in a clean boot, because Microsoft points you there.
Contact your PC maker if the memory test fails or the fault follows a module.
Give them the full message, the program name and the steps you tried.
Sources
- Microsoft: How to perform a clean boot in Windows
- Microsoft: Data Execution Prevention
- Dell: How to diagnose and resolve common memory issues on a desktop PC
More Windows error guides
- Fix Windows Activation Error 0xC004C008 Or 0xC004C770 (2026)
- How To Fix Windows Error 0xC1900101 During An Upgrade (2026)
- Fix Windows Activation Error 0xC004F050 Invalid Key (2026)
- How To Fix Windows Update Error 0x80070002 In Windows 11 (2026)
- Fix Windows Activation Error 0xC004F074 Or 0x8007007B (2026)
- WHEA_UNCORRECTABLE_ERROR Blue Screen Fix In Windows 11 (2026)
See all: Windows 11 Guides