0X000005A6

Fix 0X000005A6: Pop-up menu already active error

Windows throws 0X000005A6 when a menu is already open. Close stuck menus, end Explorer, or clean shell extensions. Quick fix.

Quick answer

Press Ctrl+Shift+Esc, find Windows Explorer, right-click it, and choose Restart. That clears the stuck menu 90% of the time.

Why this happens

This error code is the Windows way of saying “I already have a menu open, stop asking.” It’s not a hardware failure or a virus. It’s a race condition — your app or system tried to open a context menu while another one was still technically active. The classic trigger is a right-click followed by a keyboard shortcut, or an app that calls TrackPopupMenu twice without properly closing the first instance. I’ve seen it mostly in older Win32 apps, custom shell extensions, and even after rapid left/right clicks in File Explorer. The menu gets orphaned — Windows thinks it’s still there, but you can’t see it. So the next time anything tries to pop a menu, it gets this error.

Fix steps

  1. First, try the obvious. Press Esc a few times, then click on an empty desktop area. Sometimes the hidden menu just needs a nudge to close.
  2. Restart Explorer. Open Task Manager (Ctrl+Shift+Esc), scroll to Windows Explorer, right-click it, and select Restart. Your taskbar and desktop icons will blink, but that’s normal. This kills the orphaned menu state.
  3. If Explorer won’t restart — it happens — open Task Manager, click File > Run new task, type explorer.exe, hit Enter.
  4. Still stuck? Log off and back on. That forces a full shell reset. Don’t reboot yet — logoff is faster and usually works.
  5. Now, find the culprit. If this keeps happening, it’s almost always a third-party shell extension. Right-click a file, choose “Show more options” (Windows 11) and see if any custom menu items appear. Then use ShellExView from NirSoft to disable non-Microsoft context menu handlers. I’ve nailed it to things like WinRAR, 7-Zip, or old graphics drivers.

Alternative fixes if the main ones fail

  • Run SFC and DISM. Open an admin command prompt and run sfc /scannow. If it finds nothing, run DISM /Online /Cleanup-Image /RestoreHealth. Corrupted system files can cause weird menu state issues.
  • Check for stuck keyboard keys. A jammed Alt or Shift key can keep a modifier state active, confusing the menu system. Tap each key a few times, or use the on-screen keyboard.
  • Update or reinstall the offending app. If you know which app triggered it — say it happens every time you right-click inside a specific program — uninstall and reinstall the latest version. Old versions of some utilities are notorious for this.
  • Clean boot. Disable all non-Microsoft startup items in Task Manager, restart, and test. If the error disappears, enable items one by one until it comes back. That’s your culprit.

Prevention tip

Don’t double-click or right-click frantically. Slow down a beat. Also, keep your shell extensions lean — every extra context menu item is another chance for a race condition. Use ShellExView to disable anything you don’t need. And if you’re a developer, close your menu handles properly: call EndMenu or DestroyMenu after TrackPopupMenu returns. That’s the root cause.

Related Errors in Windows Errors
0X80040100 Fix DRAGDROP_E_NOTREGISTERED 0X80040100: Revoking an Unregistered Drop Target 0X00002135 Active Directory Tree Delete Error 0X00002135 Fix 0X0000094C Fix 0X0000094C Error: Source Path Cannot Be a Directory 0XC00B0001 STATUS_MUI_FILE_NOT_FOUND (0XC00B0001): Missing MUI File Fix

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.