0XC0000118

STATUS_INVALID_LDT_SIZE 0XC0000118 Fix for Windows 10/11

This bug check means Windows tried to create a local descriptor table (LDT) with a bad size. It's almost always a driver or memory issue.

1. Bad or Corrupt Driver (Most Common Cause)

I've seen this error pop up more times than I can count on Windows 10 and 11 machines. The most common trigger? A driver that's either outdated, corrupt, or just plain badly written. Last month, a small accounting firm called me because their file server kept crashing with 0xC0000118 after every third reboot. Turns out, the NIC driver – a Realtek PCIe GbE – had a known bug in version 10.0.0.12. Rolling it back fixed it instantly.

How to Fix It

  1. Boot into Safe Mode (hit F8 or Shift + Restart from the login screen).
  2. Open Device Manager (right-click Start > Device Manager).
  3. Look for devices with a yellow exclamation mark. That's your first suspect.
  4. Right-click the device and select 'Properties'.
  5. Go to the 'Driver' tab and click 'Roll Back Driver' if available. If not, download the latest driver from the manufacturer's site – not Windows Update.
  6. If rolling back doesn't work, uninstall the driver completely, reboot, and let Windows reinstall it fresh.

Real-world tip: Don't trust 'driver update' tools. They often install the wrong version. Go straight to the hardware vendor's site. For network cards, check Intel or Realtek directly. For graphics, hit AMD or NVIDIA.

2. Corrupt System Files or Memory

If updating drivers didn't stop the bluescreens, the next suspect is memory corruption. The STATUS_INVALID_LDT_SIZE error can fire when Windows tries to allocate memory for the LDT and the memory itself is hosed. I had a client whose laptop would crash every time they opened Chrome. Ran MemTest86 – one stick was failing. Replaced it, and the error never came back.

How to Check Memory

  1. Press Windows Key + R, type mdsched.exe, and hit Enter.
  2. Choose 'Restart now and check for problems'.
  3. Let it run for at least one full pass (takes 20–30 minutes). If it finds errors, replace the bad RAM stick.

System File Check

Sometimes the corruption is in Windows itself. Run these commands in an elevated Command Prompt (right-click Start > Command Prompt Admin):

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

Let SFC finish first. Then run DISM. Reboot after both complete. This fixed the error on a Windows 10 Pro machine that had a corrupted WMI repository.

3. Third-Party Software Crashes

Less common, but I've seen antivirus programs (looking at you, McAfee) and virtualization software like VMware or VirtualBox trigger this. The LDT is used for 16-bit code emulation. If a program tries to set up a bad LDT entry, Windows kills it with this error. One client had an old DOS-based accounting app that would crash every time it tried to print. The app was writing a bad LDT size – updating the app fixed it.

How to Find the Culprit

  1. Check the Event Viewer (Eventvwr.msc) under Windows Logs > System. Look for the 0xC0000118 bug check. It usually lists the offending process.
  2. Uninstall any recently added software, especially security suites or emulators.
  3. Use Autoruns (Microsoft Sysinternals) to disable non-Microsoft services and see if the error goes away.

Quick test: Boot into Clean Boot mode (msconfig > Services > Hide all Microsoft services > Disable all). Reboot. If the error stops, enable services one by one until you find the bad one.

Quick-Reference Summary Table

CauseFixTime to Try
Bad driverRoll back or update from manufacturer site15 minutes
Memory corruptionRun mdsched.exe or MemTest8630 minutes to 1 hour
Third-party softwareUninstall suspicious apps, check Event Viewer20 minutes

Start with the driver fix – it's the quickest and most common. If that doesn't work, run the memory test overnight. And if you're still seeing the error after both, you're likely dealing with software conflict. Either way, you've got a clear path now.

Related Errors in Windows Errors
0XC00D1B8B Windows Media Encoder config file version mismatch fix 0XC01D000A Fix Monitor Invalid Manufacture Date Error 0XC01D000A 0X8002802D Fix 0x8002802D: Name already exists in the library error 0X0000207A ERROR_DS_MASTERDSA_REQUIRED (0X0000207A) fix

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.