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
- First, try the obvious. Press
Esca few times, then click on an empty desktop area. Sometimes the hidden menu just needs a nudge to close. - 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. - If Explorer won’t restart — it happens — open Task Manager, click File > Run new task, type
explorer.exe, hit Enter. - Still stuck? Log off and back on. That forces a full shell reset. Don’t reboot yet — logoff is faster and usually works.
- 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
ShellExViewfrom 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, runDISM /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.