How to Fix the ERROR_INVALID_EVENT_COUNT Bug Check 151 (0x97)

This BSoD is usually caused by corrupted or incorrect drivers

Reading time icon 3 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

How to fix the ERROR_INVALID_EVENT_COUNT BSoD
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

Fix all BSoD events and keep computer safe and clean:

Fortect will find the cause of BSoD and fix it. Here is how to do it with 3 easy steps:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning to find broken files that are causing BSoD
  • Right-click on Start Repair to fix issues affecting your computerโ€™s security and performance
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

The ERROR_INVALID_EVENT_COUNT bug check comes with the value of 0x00000097and it typically indicates an issue with the event count in a system or application. It may also be accompanied by the following message: The number of specified semaphore events for DosMuxSemWait is not correct.

This issue happens when the system is performing file operations that involve multiple threads or processes attempting to access shared resources. This BSoD typically doesn’t spawn from hardware issues, but it’s rather triggered by driver issues or software conflicts.

How do I fix ERROR_INVALID_EVENT_COUNT BSoD?

1. Update the drivers

  1. Right click the Start button and select Device Manager.
  2. Expand the categories and look for any exclamation marks next to any driver.
  3. Right-click on the component, and select Update driver.
  4. Select Search automatically for drivers and allow the system to install any new ones.
  5. If the yellow exclamation mark is still present, go to the manufacturer’s website and download the right driver for your component and system.

If you don’t find any problematic driver in the list, we recommend using a driver updater tool that will automatically scan and update your drivers.

2. Run System File Checker (SFC) and DISM

  1. Click the Start button, type cmd and select Run as administrator to open Command Prompt with full privileges.
  2. Type or paste sfc /scannow and wait for the process to complete.
  3. Now, type or paste DISM /Online /Cleanup-Image /RestoreHealth and wait for it to finish.

When you’re dealing with a BSoD, one of the most efficient methods to fix it is to run the SFC and DISM commands that will solve any potential issues with the system files.

3. Uninstall the conflicting application

  1. Click the Start button and click on Settings.
  2. Now, go to Apps > Installed apps, and look for the apps you installed prior to this BSoD occurrence.
  3. Click the three dots icon to its right and select Uninstall.
  4. Reboot your system and see if the problem persists.

4. Perform a System Restore

Note icon NOTE
Be aware that restoring your system to a previous point in time will also uninstall any applications you installed from that point to present time.
  1. Click the Start button, type system restore and select Create a restore point from the results.
  2. Now, click on the System Restore button.
  3. Select a restore point that is dated before the ERROR_INVALID_EVENT_COUNT started showing up.
  4. Follow the prompts to restore your system.

Restoring your system to a previous point will fix any software-related issues. If this doesn’t solve the problem, you may also reset Windows to factory settings.

We hope that by applying the solutions above you managed to fix the ERROR_INVALID_EVENT_COUNT BSoD and now your computer is running smoothly. We also have a new guide on ERROR_INVALID_FLAG_NUMBER message, so feel free to visit it for more information.

If you need more information, check our article on the causes of BSoD. Let us know if you have any questions on the comments section below.

More about the topics: BSOD, BSoD error codes, BSoD errors

User forum

0 messages