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
- What REFERENCE_BY_POINTER means
- Why Windows stops the PC
- What the four parameters record
- Start with the quick checks
- Read the System log in Event Viewer
- Match what you see to the right fix
- Install Windows updates
- Update, roll back or disable the driver
- Use Safe Mode if the PC will not stay up
- Keep free space on the drive
- Repair damaged system files
- Restore Windows if nothing else works
- For developers: reading the dump
- Where to find each clue
- Sources and related guides
- More Windows error guides
Quick answer
Use this table to choose where to start.
| If this is true | Try this |
|---|---|
| The error began after new hardware | Shut down, remove the device and restart |
| Windows still reaches the desktop | Install Windows updates, then update drivers in Device Manager |
| The PC crashes before you can sign in | Start in Safe Mode and disable or roll back the driver |
| A driver name appears on the blue screen | Update it from the maker, or disable it if it is not essential |
| Crashes keep returning | Repair 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.
| Parameter | Meaning |
|---|---|
| 1 | Object type of the object whose reference count is being lowered |
| 2 | The object whose reference count is being lowered |
| 3 | Reserved |
| 4 | Reserved |
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.
- Open Start, type Event Viewer and open it.
- Expand Windows Logs and select System.
- Look for Error entries that carry the time of the last blue screen.
- 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 names | What to do |
|---|---|
| A device you just installed | Remove it, restart, and check the maker site for a compatible driver |
| A driver for an add-on card or accessory | Update it, roll it back, or disable it if the PC does not need it to start |
| No name at all | Work through Windows Update, Device Manager and the System log in order |
| The same stop code after every restart | Follow 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.
- Select Start, then Settings, then Windows Update.
- Select Check for updates.
- 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.
| Goal | Steps |
|---|---|
| Find the problem device | Right-click Start, select Device Manager and look for the ! marker |
| Update | Right-click the device and select Update driver |
| Roll back | Open the device Properties, then the Driver tab, then Roll Back Driver |
| Disable or remove | Right-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.
- From the sign-in screen, hold Shift and select Power, then Restart.
- Choose Troubleshoot, then Advanced options, then Startup Settings, then Restart.
- 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.
DISM /Online /Cleanup-Image /RestoreHealthsfc /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
| Clue | Where it is |
|---|---|
| Stop code and module name | Bottom of the blue screen |
| Related errors | System log in Event Viewer |
| Problem devices | Device Manager, marked with an exclamation point |
| Object address | Parameter 2 in the crash dump |
Sources and related guides
- Microsoft Learn: Bug Check 0x18 REFERENCE_BY_POINTER
- Microsoft Support: resolving blue screen errors
- DRIVER_POWER_STATE_FAILURE fix
- DRIVER_OVERRAN_STACK_BUFFER fix
More Windows error guides
- How To Fix INTERNAL_POWER_ERROR Blue Screen (2026)
- How To Fix VIDEO_DXGKRNL_FATAL_ERROR Blue Screen
- How To Fix VIDEO_SCHEDULER_INTERNAL_ERROR Blue Screen
- How To Fix FAT_FILE_SYSTEM Blue Screen (2026)
- How To Fix MACHINE_CHECK_EXCEPTION Blue Screen
- How To Fix IO1_INITIALIZATION_FAILED Blue Screen
See all: Windows 11 Guides