Fix error 0xc0000142

0xc0000142 is STATUS_DLL_INIT_FAILED: initialization of a dynamic link library failed, so the process was ended abnormally. A library loaded, but its startup routine did not succeed. Restart the PC, repair the Microsoft Visual C++ Redistributables, run sfc /scannow, and use a clean boot to spot a background program that interferes.

Checked November 10, 2026 against the manufacturer's own pages.

The short version

What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.

Code0xC0000142
Official nameSTATUS_DLL_INIT_FAILED
Where it appearsThe application was unable to start correctly (0xc0000142), for apps, games and Office programs
Most common causeA library that loads but fails its own startup, often due to damaged runtimes or a conflicting background tool
Windows versionsWindows 11 and Windows 10
Microsoft Learn: NTSTATUS values (0xC0000142 STATUS_DLL_INIT_FAILED)learn.microsoft.comMicrosoft Support: How to perform a clean boot in Windowssupport.microsoft.comMicrosoft Learn: Latest supported Visual C++ Redistributable downloadslearn.microsoft.comMicrosoft Support: Use the System File Checker toolsupport.microsoft.com

Official files only, nothing bundled

Step by step

  1. Do a full restart first

    Choose Start, Power, Restart rather than Shut down. With Fast startup on, a shutdown keeps part of the old session, so a library stuck in a bad state can survive it. A restart starts everything fresh.

  2. Repair the Visual C++ runtimes

    Go to Settings, Apps, Installed apps and search for Visual C++. For each Microsoft Visual C++ Redistributable, select the three dots, Modify, then Repair. If none are listed, install the X86 and X64 packages from Microsoft's download page.

  3. Run a clean boot

    Press Windows key + R, type msconfig and press Enter. On the Services tab tick Hide all Microsoft services and select Disable all. On Startup, open Task Manager and disable each item. Restart and open the app. If it works, turn things back on in small groups to find the culprit.

  4. Repair Windows system files

    Right-click Start, choose Terminal (Admin), and run DISM /Online /Cleanup-Image /RestoreHealth. When it completes, run sfc /scannow and restart the PC.

  5. Repair or reinstall the app

    In Settings, Apps, Installed apps, open the three dots next to the program. Store apps show Advanced options with Repair and Reset. Desktop programs show Modify or Uninstall. Office has its own Quick Repair under Modify.

Faster option: let a PC tool do the clean-up

The steps above fix this error. Errors like this often come back on a PC full of junk files, broken registry entries and leftovers from removed programs. A maintenance tool clears those in one scan.

Scan and clean up Windows

Finds junk files, invalid registry entries, startup slowdowns and privacy traces, then fixes them in one click.

Auslogics BoostSpeed 14 · Free version · Windows 11, 10, 8, 7 · 30-day refund on Pro

What happens during a 0xc0000142 failure

Every Windows program loads a set of libraries before it shows its window. Each library has a small startup routine. Microsoft’s text for STATUS_DLL_INIT_FAILED says that routine failed and the process is terminating abnormally. Windows does not know why the library refused to start; it only knows that it did, so the box rarely names the guilty file.

Narrowing down the cause

Look at how widespread it is. One program failing points at that program’s files or its runtimes, so repairing that app and the Visual C++ packages is the quickest check. Many programs failing at once, often after an update, points at shared system files or at something running in the background for every program, such as a shell extension, overlay or security add-on. The clean boot answers that question in a few minutes.

Event Viewer can help too. Open it from the Start menu, go to Windows Logs, Application, and look for an Application Error entry at the time of the crash. The Faulting module name field sometimes names the library that refused to start.

A rarer cause: running out of desktop heap

A pattern often reported on PCs that keep dozens of programs or services open at once: Windows runs short of a resource that each new desktop program needs while it initializes. New programs then fail with 0xc0000142 while older ones keep working. Closing a batch of programs or restarting clears it. If it returns often, trim startup apps in Task Manager, Startup apps.

Questions

What is the difference between 0xc0000142 and 0xc000007b?

With 0xc000007b, a file has the wrong format and cannot even load. With 0xc0000142, the library loaded but its own setup code failed. The first points at mismatched files, the second more often at conflicts or damaged dependencies.

Why does Office show 0xc0000142?

Office programs load many shared libraries at launch. If one fails to initialize, Windows ends the process with this code. Quick Repair from Settings, Apps, Installed apps, Microsoft 365, Modify usually rebuilds the damaged parts.

Can antivirus cause 0xc0000142?

A security tool that injects into other programs can make a library fail to start. Do not uninstall Windows Security. Test with a clean boot, and if a third-party security product is the trigger, update it or ask its maker for help.