|

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

StepWhat to doBest when
1Restart, then update Windows and the app that shows the errorAlways the first step
2Perform a clean boot and test againAnother program may be interfering
3Check Data Execution PreventionOne older program fails every time
4Run SFC and DISMWindows files may be damaged
5Test the RAMMany 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 seeStart with
One program shows the error every timeUpdate or reinstall that program, then the clean boot and DEP steps
Several different programs show itWindows updates, SFC and DISM, then the memory test
The PC also blue screens or freezesThe 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.

  1. Sign in as an administrator.
  2. Search for msconfig and open System Configuration.
  3. On the Services tab, check Hide all Microsoft services, click Disable all, then click Apply.
  4. On the Startup tab, click Open Task Manager.
  5. On the Startup apps tab, select each Enabled item and click Disable, and note what you turned off.
  6. 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.

  1. Open msconfig and choose Normal Startup on the General tab.
  2. On the Services tab, clear Hide all Microsoft services and click Enable all.
  3. On the Startup tab, open Task Manager and enable the items you disabled.
  4. 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 stepWhat it involves
Run ePSATurn the PC off, hold Fn and press the power button, or tap F12 and choose Diagnostics
Let it finishHardware checks take about 15 to 20 minutes, and memory tests can exceed 30 minutes
Test one module at a timeTry each DIMM in every slot and record the results
Read the resultIf 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

Leave a Reply

Your email address will not be published. Required fields are marked *