0x00000775 - ERROR_NO_MORE_USER_HANDLES (No more user handles available)
The system has run out of user handles (window manager objects). Each process has a limited number of USER objects (windows, menus, hooks, etc.) it can create.
Symptoms
- Applications fail to create new windows or dialogs
- CreateWindow/Ex returns NULL with GetLastError() = 0x775
- Task Manager shows high USER/GDI object counts for a process
- Remote Desktop sessions or Citrix sessions fail to start new windows
Troubleshooting steps
- Identify the leaking process: use Task Manager (Details tab) or Process Explorer to check USER Objects column
- Restart the offending application to release its handles
- Check for code that creates windows/menus/hooks without destroying them (e.g., CreateWindow without DestroyWindow, SetWindowsHookEx without UnhookWindowsHookEx)
- Increase the desktop heap size if the global limit is hit (registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems\Windows → SharedSection values)
- For RDP/Citrix: verify session limits and consider increasing the desktop heap per session