Apps & runtime · medium

How to fix the application was unable to start correctly (0xc000007b)

Apps & runtime troubleshooting guide

What this error means

A program or game fails to open with "The application was unable to start correctly (0xc000007b)". Microsoft's name for this code is STATUS_INVALID_IMAGE_FORMAT: a file the program loads is either not designed to run on Windows or contains an error, and Microsoft's advice is to reinstall the program. In practice it usually means a 32-bit and 64-bit mix-up, such as a 32-bit DLL loaded by a 64-bit program, often after DLL files were copied in by hand, or a damaged Visual C++ or DirectX runtime.

Updated

Applies to
Windows 11 and Windows 10
Difficulty
Beginner
Before changes
Low

Reviewed by Matyáš Rada · Documentation checked: 2026-10-31 · Checked against Microsoft's NTSTATUS documentation and runtime installation guidance; not tested with every program.

Before you begin

Note which program shows the error and whether you recently copied any .dll files into Windows or the program's folder. Never download DLL files from DLL websites. If Windows cannot start, see the startup guide.

Work through these checks

0 of 7 complete
01Reinstall the program

Microsoft's message for this code advises installing the program again from the original source.

  1. Uninstall the program in Settings > Apps > Installed apps.
  2. Download a fresh installer from the official website or store and install it again.
  3. For games, verify or repair the files in the launcher instead (Steam: Properties > Installed Files > Verify integrity of game files).
What to expect

The program starts normally.

If it does not help

Make sure you downloaded the version matching your Windows (64-bit for almost all current PCs).

Browse related errors
02Remove DLLs you copied in by hand

A DLL of the wrong architecture is the most common trigger for this code.

  1. If you copied DLL files such as msvcp140.dll, vcruntime140.dll or d3dx9_43.dll into C:\Windows\System32, C:\Windows\SysWOW64 or the program's folder, delete those copies (keep a note of their names).
  2. Do not delete DLLs that came with Windows or the program; only remove ones you added yourself.
  3. Then install the official runtime packages in steps 3 and 4, which put the correct versions in place.

Deleting Windows system files breaks Windows. Remove only files you know you copied in.

What to expect

Only official DLL versions remain.

If it does not help

If you are not sure which files you added, skip this step and continue with step 3.

Browse related errors
03Repair the Visual C++ Redistributables

Many programs depend on these runtimes, and a damaged installation causes start-up errors.

  1. Download the latest supported Visual C++ Redistributable from Microsoft in both versions: X64 and X86.
  2. Run both installers; if they offer Repair, choose Repair.
  3. Restart the PC and try the program again.
What to expect

The program starts.

If it does not help

The VCRUNTIME140.dll guide on this site explains these packages in detail.

Browse related errors
04Install the DirectX runtime for older games

Older games use legacy DirectX libraries that Windows does not include by default.

  1. Download the DirectX End-User Runtime Web Installer (dxwebsetup.exe) from Microsoft's website and run it.
  2. Or run the DirectX setup in the game's own folder, often in _CommonRedist\DirectX.
What to expect

The game starts.

If it does not help

The d3dx9_43.dll guide on this site covers this runtime.

Browse related errors
05Check antivirus quarantine

Security software sometimes quarantines or damages a program's files.

  1. Open Windows Security > Virus & threat protection > Protection history and look for items from the program's folder.
  2. Restore them only if you trust the program and its source, then reinstall the program.

Never restore files from an untrusted source.

What to expect

No program files are blocked.

If it does not help

If your third-party antivirus blocked files, check its quarantine the same way.

Browse related errors
06Repair Windows system files

Damaged system DLLs produce the same error for many programs at once.

  1. Open Terminal (Admin).
  2. Run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow, and restart.
What to expect

SFC reports no remaining problems.

If it does not help

If many programs fail with this code, this step is the most important one.

Browse related errors
07Run Windows Update

Updates include current versions of system components that programs rely on.

  1. Open Settings > Windows Update and install all available updates, including .NET updates.
  2. Restart and try the program again.
What to expect

The program starts normally.

If it does not help

If only one program still fails, contact its developer with the exact error message.

Browse related errors

Possible causes

  • A 32-bit DLL loaded by a 64-bit program, or the other way round
  • DLL files downloaded from DLL websites and copied into System32 or the program folder
  • Damaged or missing Visual C++ Redistributable packages
  • Damaged program or game files
  • Missing legacy DirectX components for older games

Sources & further reading