6 Effective Solutions to Resolve ERROR_DISCARDED 157 (0x9D) Issue

6 Effective Solutions to Resolve ERROR_DISCARDED 157 (0x9D) Issue

The Error_Discarded 157 (0x9D) accompanied by the message “The segment is already discarded and cannot be locked” arises when a process attempts to access a memory segment or a buffer/file that has already been discarded or rendered inaccessible. This issue may surface while using device drivers, memory buffers, or during certain kernel-level operations.

Initially, verify that your system has adequate RAM and is free from memory leaks. Next, monitor your memory usage and close any unnecessary applications to alleviate the burden. Restarting the affected application or your computer can also help in refreshing the state of the hardware or memory segment.

How to Resolve ERROR_DISCARDED 157 (0x9D)?

1. Update or Reinstall the Problematic Driver

  1. Press Windows + R to open the Run dialog.Device Manager Run command - ERROR_DISCARDED
  2. Input devmgmt.msc and hit OK to launch the Device Manager application.
  3. In the device list, expand categories and identify any driver marked with a yellow exclamation point.
  4. Right-click on the identified driver and select Update driver from the menu.Update driver
  5. Choose the option to Search automatically for drivers, then follow the prompts to finish the process. Repeat as necessary for any additional outdated or corrupted drivers.Search automatically - ERROR_DISCARDED

If Windows fails to locate the latest driver version, visit the manufacturer’s website to download it directly. Alternatively, consider using a trusted driver updater tool to facilitate the scan and update process quickly. If you have the most recent driver and the error persists, attempting to reinstall the driver may help. To do this, follow these steps:

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

2. Execute a CHKDSK Scan

  1. Press the Windows key, type cmd in the search bar, and select Run as administrator.CMD elevated - ERROR_DISCARDED
  2. Type the command below, replacing C with the appropriate system drive on your computer, and press Enter : chkdsk C: /fCHKDSK 1 - ERROR_DISCARDED
  3. You will see a prompt indicating that the scan will occur on restart. Type Y and press Enter to schedule it.
  4. Now, restart your computer and await the completion of the scan.

3. Temporarily Disable the Windows Firewall

  1. Press the Windows key, type control panel in the search field, and click Open.Control Panel start menu
  2. Under View by, select Category and then click on System and Security.Category - Error_Discarded
  3. Select the Windows Defender Firewall option.Windows Defender Firewall
  4. Click on Turn Windows Defender Firewall on or off.Turn on or off defender
  5. Deselect the checkboxes next to Turn on Windows Defender Firewall under both Private network settings and Public network settings.Turn on or off, click OK
  6. Click OK to apply the changes.

4. Review the Event Viewer for Errors

  1. Press Windows + R to launch the Run dialog.Event Viewer
  2. Input eventvwr.msc and click OK to open the Event Viewer.
  3. On the left pane, navigate to Windows Logs > System or Application.Windows logs- Error_Discarded
  4. Look for any errors or warnings related to memory management, hardware, or any application that may be triggering the Error_Discarded message.

5. Carry Out an SFC Scan

  1. Press the Windows key, type cmd in the search bar, and select Run as administrator.CMD elevated
  2. Paste the following command to repair or restore any corrupted system files and press Enter : sfc /scannowSFCSCANNOW CMD - Error_Discarded
  3. Allow the scan to complete. If any issues are detected, the utility will attempt to fix the corrupted files. Restart your computer afterward to apply the changes.

6. Execute a System Restore

  1. Press the Windows key, type control panel in the search box, and click Open.Control Panel start menu
  2. Change View by to Large icons and select 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 available restore points, choose the most recent one created prior to the emergence of the error and click Next.Choose a point
  6. Click Finish to start the restoration process.Finish

Your computer will restart and revert the system settings to the selected restore point. If after booting you encounter a message stating that System Restore was not successfully completed, it may be due to conflicting drivers or corrupted system files; in this case, try the remedies detailed in this guide.

If you continue to face the Error_Discarded notification, it may be necessary to consider a Windows reinstallation or replacing any problematic hardware.

If you have any queries or suggestions regarding this issue, please leave them in the comments section below. We are here to assist you!

Source & Images

Leave a Reply

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