6 Ways to Fix The ERROR_DISCARDED 157 (0x9D) Error

First, end all the unwanted processes

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

For fixing Windows errors, we recommend Fortect:

Fortect will identify and deploy the correct fix for your Windows errors. Follow the 3 easy steps to get rid of Windows errors:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning your PC for Windows errors
  • Right-click on Start Repair to deploy the right fix for each error encountered during the scan
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

The Error_Discarded 157 (0x9D) with the error message The segment is already discarded and cannot be locked appears when an operation or process tries to interact with a memory segment or a buffer/file that has been discarded or is no longer accessible. This error can occur when using device drivers, memory buffers, or kernel-level operations.

To begin with, check if your system has sufficient RAM and ensure there are no memory leaks. Then, check for memory usage and close unwanted apps to reduce the load. Restart the affected app or the computer to refresh the hardware or memory segment state.

How can I fix the ERROR_DISCARDED 157 (0x9D) error?

1. Update or reinstall the problematic driver

  1. Press Windows + R to open the Run window. Device Manager Run command - ERROR_DISCARDED
  2. Type devmgmt.msc and click OK to open the Device Manager app.
  3. From the list of system components, expand each category and look for a driver with a yellow triangle with an exclamation mark inside.
  4. Right-click the problematic driver and click the Update driver from the context menu.Update driver
  5. Select the Search automatically for drivers option, then follow the on-screen instructions to complete the process. Repeat these steps if there is more than one outdated or corrupted driver.Search automatically - ERROR_DISCARDED

If Windows cannot find the latest version of the driver, you can visit the manufacturer’s website to download it. Alternatively, you can use a reliable driver updater tool to scan and update the driver in no time. However, if you already have the latest version of the driver and are still getting the error, try reinstalling the driver. For that, follow these steps:

  1. Open Device Manager again and locate the problematic driver.
  2. Right-click it and select Uninstall device.Uninstall graphics driver
  3. Go to Action and select Scan for hardware changes from the drop-down menu to reinstall the driver.Action scan for hardware changes

2. Run the CHKDSK scan

  1. Press the Windows key, type cmd in the search box, and select Run as administrator from the options.CMD elevated - ERROR_DISCARDED
  2. Type the following command after replacing C with the system drive on your computer to run the disk scan and hit Enter: chkdsk C: /fCHKDSK 1 - ERROR_DISCARDED
  3. You will be informed that the scan will run after the restart. To schedule it, type Y and press Enter.
  4. Now reboot your computer and wait for the scan to complete.

3. Disable the Windows Firewall temporarily

  1. Press the Windows key, type control panel in the search box, and click Open from the options.Control Panel start menu
  2. Select Category for View by and click System and Security.  Category - Error_Discarded
  3. Click the Windows Defender Firewall option.Windows Defender Firewall
  4. Select the Turn Windows Defender Firewall on or off link.Turn on or off defender
  5. Remove the checkmark next to Turn on Windows Defender Firewall under Private network settings, and Public network settings.Turn on or off, click OK
  6. Click OK to save the changes.

4. Check the Event Viewer for errors

  1. Press Windows + R to open the Run window.Event Viewer
  2. Type eventvwr.msc and click OK to launch the Event Viewer.
  3. From the left pane, go to Windows Logs > System or Application.Windows logs- Error_Discarded
  4. Now, look for any errors or warnings related to memory management, hardware, or any specific app causing Error_Discarded.

5. Run an SFC scan

  1. Press the Windows key, type cmd in the search box, and click Run as administrator from the list of options.CMD elevated
  2. Copy & paste the following command to repair/restore the corrupted system files and hit Enter: sfc /scannowSFCSCANNOW CMD - Error_Discarded
  3. Wait for the scan to complete. If issues are found, it will try to repair the corrupted files. Restart the computer to let the changes take effect.

6. Perform a system restore

  1. Press the Windows key, type control panel in the search box, and click Open from the list of options.Control Panel start menu
  2. Select Large icons for View by and click Recovery.Recovery Control Panel - Error_Discarded
  3. Click the Open System Restore link.Open system restore
  4. Select Choose a different restore point and click Next.Next Choose a different restore point - Error_Discarded  
  5. From the list of available restore points, select the most recent one created before the error occurred, then click Next.Choose a point
  6. Click Finish to initiate the process.Finish

Windows will restart and restore the system settings to the selected point. If you see System Restore was not successfully completed error message after the system boots up, it could be due to conflicting drivers or corrupted system files; try the methods mentioned in this detailed guide.

If you still see the Error_Discarded message, consider reinstalling Windows or replacing the hardware causing the issue.

If you have any questions or suggestions about the issue, feel free to mention them in the comments section below. We’re happy to help!

More about the topics: BSoD error codes, BSoD errors, Windows 11

User forum

0 messages