Application error 0xc0000142 stops a program from starting on Windows, usually with a message that the application failed to initialize properly. This fix guide explains the common causes and walks you through proven steps to resolve it, from restarting the affected service to reinstalling the program.
What Does Error 0xc0000142 Mean?
Error 0xc0000142 is a Windows system error that appears when a program cannot start because the system fails to initialize it properly. The full message typically reads: “The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.” This error is not specific to one program—it can affect games, office suites, system tools, and even Windows components like the Start menu or File Explorer.
The hexadecimal code 0xc0000142 is a status code that Windows uses internally to indicate a failure during the application initialization phase. It often points to a problem with the Windows graphical subsystem (like the Desktop Window Manager) or a missing system component that the program depends on.
Common Causes of 0xc0000142
- Corrupted system files – Essential Windows files that manage graphics or user sessions may be damaged.
- Faulty graphics drivers – Outdated or incompatible GPU drivers can prevent a program from initializing its display components.
- Missing Visual C++ Redistributables – Many applications require specific Microsoft Visual C++ runtime libraries; if these are absent or broken, the app fails to start.
- Malware or antivirus interference – Security software may block a program from executing its initialization code.
- Corrupted user profile – A damaged Windows user account can cause this error for multiple applications.
- Outdated Windows – Missing system updates can leave known bugs unfixed.
How to Fix Error 0xc0000142
Start with the simplest solutions and move to more involved ones. Always restart your PC after each attempt to see if the error is gone.
1. Restart the Desktop Window Manager
- Press Ctrl + Shift + Esc to open Task Manager.
- Go to the Details tab and find dwm.exe.
- Right-click it and choose End task. Windows will restart it automatically.
- Try launching the application again.
This fixes the error when it is caused by a temporary glitch in the window manager.
2. Run System File Checker and DISM
- Open Command Prompt as administrator (search for “cmd”, right-click, select “Run as administrator”).
- Type
sfc /scannowand press Enter. Wait for the scan to complete. - Then run
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Restart your computer.
These commands repair corrupted system files that may be causing the error.
3. Update Graphics Drivers
- Open Device Manager (right-click Start, select Device Manager).
- Expand Display adapters, right-click your GPU, and choose Update driver.
- Select Search automatically for drivers. If none are found, visit your GPU manufacturer’s website (NVIDIA, AMD, Intel) for the latest driver.
- Install the driver and restart.
4. Install or Repair Visual C++ Redistributables
- Go to Microsoft’s official download page for Visual C++ Redistributables (search “Visual C++ Redistributable latest supported downloads”).
- Download and install both the x86 and x64 versions.
- If the error persists, use Programs and Features to repair the existing installation.
5. Check for Malware
Run a full system scan with Windows Defender or a trusted third-party antivirus. Malware can inject code that breaks application initialization.
6. Create a New User Profile
- Go to Settings > Accounts > Family & other users.
- Add a new user account and sign in with it.
- Try running the application from the new profile. If it works, the original profile was corrupted.
7. Reinstall the Application
Uninstall the program that triggers the error, then download the latest version from the official source and install it. This replaces any missing or corrupted application files.
What to Do If the Error Affects Windows Itself
If error 0xc0000142 appears when you log in or when launching core Windows apps (like Settings or File Explorer), the problem is more systemic. In that case:
- Boot into Safe Mode (hold Shift while clicking Restart, then choose Troubleshoot > Advanced options > Startup Settings).
- In Safe Mode, run the System File Checker and DISM commands as shown above.
- If the error persists, use System Restore to revert to a point before the issue started.
- As a last resort, use the Reset this PC feature (Settings > Update & Security > Recovery) to reinstall Windows while keeping your files.
Preventing the Error in the Future
- Keep Windows updated – Enable automatic updates to receive fixes for known bugs.
- Update drivers regularly – Especially GPU and chipset drivers.
- Install all required runtime libraries – Many games and apps need Visual C++ and .NET Framework.
- Use a reputable antivirus – Keep it updated and perform periodic scans.
- Avoid pirated software – Cracked executables often trigger this error due to altered code.
Frequently Asked Questions
Can error 0xc0000142 damage my computer?
No, the error itself is not harmful. It only prevents a program from starting. However, the underlying cause (like malware or corrupted system files) could be serious, so it’s worth addressing.
Why does the error happen only for one specific program?
That usually indicates the program’s own files are corrupted or it’s missing a dependency (like a Visual C++ runtime). Reinstalling the program often fixes it.
Is this error related to DirectX?
Sometimes. Games that rely on DirectX may trigger this error if the DirectX installation is corrupted. You can reinstall DirectX from Microsoft’s website, but on Windows 10/11 it’s usually updated via Windows Update.
Will I lose my files if I reset Windows?
Using the “Reset this PC” option with “Keep my files” preserves your personal documents, but it removes installed applications and settings. Always back up important data before doing this.
Can a faulty RAM stick cause 0xc0000142?
Yes, but it’s rare. Memory errors can cause any number of random system errors, including this one. If you suspect RAM issues, run Windows Memory Diagnostic (type “Windows Memory Diagnostic” in Start).
Does the error occur on Windows 7 or 8?
Yes, it can appear on any modern Windows version. The fix steps are similar, though some menu paths differ slightly.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- PowerPoint vs Keynote: Key Differences
- How to Sign Out of OneDrive in Windows 10
- Reduce Memory Use in Windows When RAM Is Low
- How to Set Up and Use Credential Manager on Windows 10
- Fix Microsoft Edge Battery Drain on Windows 11
- Type to Siri Instead of Talking on iPhone (iOS 11)