ERROR_WINDOW_NOT_DIALOG (0x0000058C) fix
This error means a program tried to use a window that isn't a dialog box. It's a coding bug, not a system failure. Here's how to fix it.
Quick answer (for advanced users)
Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth from an admin command prompt, then reinstall the program that caused the error. That fixes corrupted system files or a broken app install.
What this error really means
Error code 0x0000058C pops up when a program tries to send a command to a window that it thinks is a dialog box, but that window isn't a dialog. It's like handing a restaurant menu to someone who's not a waiter — they don't know what to do with it. You'll see this most often when using older software (like a tax program from 2015 or an antique photo editor) on Windows 10 or 11. The app's code expects a specific dialog handle, but something went wrong — maybe a bad update, a corrupt file, or a clash with another program. Your PC is fine; the app is the problem.
Fix it step by step
- Run System File Checker first. This fixes corrupted Windows files that might be confusing the app. Press the Windows key, type
cmd, right-click Command Prompt, and pick "Run as administrator." In the black window, typesfc /scannowand hit Enter. Wait. It'll take 10-15 minutes. When it finishes, you'll see either "Windows Resource Protection did not find any integrity violations" or "Windows Resource Protection found corrupt files and successfully repaired them." If it says it couldn't fix something, move to step 2. - Run DISM to fix the system image. Still in the admin command prompt, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This downloads fresh system files from Microsoft. It takes 20-30 minutes. Don't close the window. When it's done, it'll say "The restoration completed successfully." Then reboot your PC. - Reinstall the program giving you the error. Open Settings > Apps > Apps & features, find that program, click it, then pick Uninstall. Restart your PC again. Download the latest version from the software maker's site and install it fresh. This clears out any broken registry entries or corrupt program files that the error dug into.
Alternative fixes if the main ones don't work
If the error sticks around, try these:
- Run the program in compatibility mode. Right-click the program's shortcut or .exe file, pick Properties, go to the Compatibility tab, check "Run this program in compatibility mode for," and choose an older Windows version (like Windows 7 or 8). Click OK and try launching it again.
- Turn off User Account Control (UAC) temporarily. Type
UACin the Start menu, click "Change User Account Control settings," drag the slider down to "Never notify," and click OK. Reboot. If the error goes away, you know UAC was interfering. Turn it back on after testing (set it to the second notch from top). - Check for conflicting software. Some antivirus tools hook into dialog boxes and break them. Disable your antivirus for 5 minutes (right-click its icon in the system tray and pick Disable) and try the program again. If it works, add that program as an exception in your antivirus settings.
Prevention tip
Keep your software updated. Old programs that weren't written for Windows 10/11 are the usual suspects. Before you install anything, check the maker's site for a version that says "Windows 10 compatible" or "Windows 11 ready." Also, run sfc /scannow once a month — it catches file corruption before it causes weird errors like this one.
Was this solution helpful?