|

How To Fix REFERENCE_BY_POINTER Blue Screen (2027)

REFERENCE_BY_POINTER is a blue screen with the stop code 0x18.

Microsoft describes it as an object whose reference count is illegal for the state that object is in.

In practice a driver has mishandled a kernel object, so the fix is to find and replace that driver or the hardware behind it.

Table of Contents

Quick answer

Use this table to choose where to start.

If this is trueTry this
The error began after new hardwareShut down, remove the device and restart
Windows still reaches the desktopInstall Windows updates, then update drivers in Device Manager
The PC crashes before you can sign inStart in Safe Mode and disable or roll back the driver
A driver name appears on the blue screenUpdate it from the maker, or disable it if it is not essential
Crashes keep returningRepair system files, then use a restore point or recovery option

What REFERENCE_BY_POINTER means

The bug check has the value 0x00000018.

Windows tracks how many users an object has through a reference count.

Each time a driver uses a pointer to an object, it calls a kernel routine that raises the count by one.

When the driver finishes with the pointer, it calls another routine that lowers the count by one.

Microsoft says drivers must match those two kinds of calls.

Why Windows stops the PC

Microsoft says the stop is caused by an inconsistency in an object reference count.

The usual culprit is a driver that lowers the count too many times by making extra dereference calls.

It can also happen when a count reaches zero while open handles to the object still exist.

A count that drops below zero triggers it whether or not any handles are open.

Microsoft notes its technical page is written for programmers, and sends everyday users to its general blue screen guide instead.

What the four parameters record

The crash dump stores four values, and only two of them carry information.

ParameterMeaning
1Object type of the object whose reference count is being lowered
2The object whose reference count is being lowered
3Reserved
4Reserved

Parameter 2 is the one a developer uses to inspect the object, so most owners can skip these numbers.

Start with the quick checks

Look at the bottom of the blue screen and write down the stop code and any module name shown.

Microsoft says that module name can point to a device, its driver or a piece of software.

If you added hardware before the crashes began, shut down, remove it and start the PC again.

Microsoft also advises confirming that any new hardware is compatible with your version of Windows.

Read the System log in Event Viewer

Microsoft suggests the System log for additional error messages that may identify the device or driver.

  1. Open Start, type Event Viewer and open it.
  2. Expand Windows Logs and select System.
  3. Look for Error entries that carry the time of the last blue screen.
  4. Note any driver or device name in those entries.

A name found here tells you which driver to update, roll back or disable in the next steps.

Match what you see to the right fix

Microsoft says the module name on the screen may be a hardware device, its driver or software.

Use that name to decide which step deserves your time first.

What the screen or log namesWhat to do
A device you just installedRemove it, restart, and check the maker site for a compatible driver
A driver for an add-on card or accessoryUpdate it, roll it back, or disable it if the PC does not need it to start
No name at allWork through Windows Update, Device Manager and the System log in order
The same stop code after every restartFollow the basic steps in Safe Mode, then use a restore point

Change one thing at a time and restart between changes.

That way you know which change stopped the crashes.

Install Windows updates

Microsoft lists Windows Update as a basic step for blue screen errors.

  1. Select Start, then Settings, then Windows Update.
  2. Select Check for updates.
  3. Install what is offered and restart the PC.

Update, roll back or disable the driver

Microsoft says to check Device Manager for any device marked with an exclamation point.

GoalSteps
Find the problem deviceRight-click Start, select Device Manager and look for the ! marker
UpdateRight-click the device and select Update driver
Roll backOpen the device Properties, then the Driver tab, then Roll Back Driver
Disable or removeRight-click the device, then choose Disable device or Uninstall device

If a driver is named in the bug check, Microsoft says to disable it or ask the manufacturer for an update.

Only disable a driver that is not needed to boot, such as one for an add-on card or accessory.

Our guide to updating graphics drivers in Windows 11 shows the update path for a display adapter.

Use Safe Mode if the PC will not stay up

Microsoft says to start in Safe Mode when the PC will not restart normally.

  1. From the sign-in screen, hold Shift and select Power, then Restart.
  2. Choose Troubleshoot, then Advanced options, then Startup Settings, then Restart.
  3. Press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.

In Safe Mode you can run every driver and update step above.

Keep free space on the drive

Microsoft recommends leaving about 10% to 15% of the hard drive free.

A nearly full system drive can cause other faults that make a driver problem harder to isolate.

Repair damaged system files

Open Command Prompt as administrator and run these two commands in order.

  1. DISM /Online /Cleanup-Image /RestoreHealth
  2. sfc /scannow

Restart afterward and see whether the blue screen returns.

Restore Windows if nothing else works

Microsoft says to use a system restore point or another recovery option when the basic steps fail.

Pick a restore point dated before the crashes started, since that undoes a recent driver or update.

Our general Windows 11 blue screen guide covers the wider list of stop codes.

For developers: reading the dump

Microsoft says the !analyze debugger extension summarizes the bug check and helps find the root cause.

To see the handle and pointer counts, run !object address in the kernel debugger with the address from Parameter 2.

Microsoft also suggests setting a breakpoint before the failing code and stepping into it.

Where to find each clue

ClueWhere it is
Stop code and module nameBottom of the blue screen
Related errorsSystem log in Event Viewer
Problem devicesDevice Manager, marked with an exclamation point
Object addressParameter 2 in the crash dump

Sources and related guides

Leave a Reply

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