0xc0000142
The application was unable to start correctly (0xc0000142)
Application initialization failed, usually due to DLL load order or missing runtime
Root cause
The process failed to call LoadLibrary / DllMain before the main thread started. Common causes: missing runtime DLLs, corrupted user profile, or polluted PATH environment variable.
Fix paths (try in order)
-
Install the latest VC++ Redistributable
The merged Microsoft redistributable (VS 2015-2022) covers vcruntime140, msvcp140 and almost all modern C++ DLLs. Install both VC_redist.x86.exe and VC_redist.x64.exe, then reboot.
-
Install DirectX End-User Runtime
Windows 10/11 ship with modern DirectX, but many older games depend on legacy components like d3dx9_*, d3dcompiler_*, xinput1_3, xaudio2_7. Install the DirectX End-User Runtime Web Installer from the Microsoft Download Center.
-
Check if the program path contains non-ASCII characters
A few legacy programs are sensitive to non-ASCII characters in the path. Try moving the program to a pure-ASCII path like C:\Programs\.
-
Run System File Checker
Open PowerShell or Command Prompt as Administrator and run these commands in order:
sfc /scannow DISM /Online /Cleanup-Image /RestoreHealth -
Reinstall the program from its official site
If only one program triggers the error, the bundled DLL inside it is the issue. Uninstall, then reinstall from the vendor's official site. On Steam/Epic, use the "Verify integrity of game files" feature.