The error invalid LDT descriptor (Windows system error 564, hex 0x234) is one of the rarest codes in the Win32 error table, and that rarity is exactly why it is so confusing when it appears. Almost nobody writes blog posts about it, most generic "fix Windows errors" advice does not apply to it, and the message itself — "Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors" — reads like CPU documentation rather than an actionable Windows problem.
The good news is that this error is very specific. It is not a sign that your PC is dying, that your BIOS is misconfigured, or that you need to reinstall a hundred drivers. It means one precise thing: some software tried to install an x86 segment descriptor into the process Local Descriptor Table (LDT), and Windows rejected the descriptor as invalid. Once you understand that, the path to a fix becomes logical.
This article explains what the error actually means, why Windows refuses certain descriptors, when you are likely to encounter it, how to diagnose it, and which fixes are worth your time — including what to safely ignore. It also includes practical guidance for developers whose own code produces error 564.
What the Error Invalid LDT Descriptor Message Means#
Microsoft documents error 564 in the official system error code list as:
ERROR_INVALID_LDT_DESCRIPTOR — 564 (0x234) — "Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors."
You may see this same value in several disguises, depending on where it surfaces:
Where you see it
Value
What it is
GetLastError() / error logs
564
The decimal Win32 error code
Hex dumps, crash dialogs
0x234
The same code in hexadecimal
COM, .NET, setup logs
0x80070234
The Win32 code wrapped in an HRESULT (facility WIN32)
Message text
The sentence quoted above
Text produced by FormatMessage from the system message table
Two keywords in the message are worth decoding:
LDT is the Local Descriptor Table, a per-process table of x86 segment descriptors (more on this below).
Descriptor here is not a file descriptor or COM descriptor. It is an 8-byte x86 segment descriptor: a structure that tells the CPU where a memory segment starts, how large it is, and who may access it.
So the error means: a program handed Windows a segment descriptor that does not satisfy the rules for descriptors, and Windows refused to put it in the process LDT.
That single sentence rules out most of the folklore attached to this error. Because the rejection happens inside the kernel's descriptor-validation logic, the error is about the software that supplied the descriptor — usually a legacy 16-bit-era program or a low-level tool — not about failing hardware, overheating, or a "corrupted registry."
To see why an application would install LDT descriptors at all, it helps to know a little 1980s CPU architecture.
On 32-bit x86 processors, memory access is mediated by segmentation. The CPU keeps two tables of segment descriptors:
The GDT (Global Descriptor Table) — one per system, set up by the kernel.
The LDT (Local Descriptor Table) — optional, one per process, allocated by the kernel the first time a process requests a custom entry.
A program addresses memory through a selector: an index plus a table-indicator bit that says whether the descriptor lives in the GDT or the LDT. A segment descriptor (as defined in the Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3A) contains:
Field
Meaning
Base address
Start of the segment (32 bits in a classic descriptor)
Limit
Length of the segment, with a granularity bit (byte vs. 4 KB pages)
Type / S bit
Whether this is a code/data segment or a system descriptor (TSS, call gate, LDT entry, ...)
Windows itself uses this machinery sparingly: a flat memory model, a handful of kernel segments in the GDT, and per-thread entries such as the one pointing at the Thread Environment Block. The classic consumer of custom per-process LDT entries is the NTVDM — the NT Virtual DOS Machine, the component that runs 16-bit Windows and DOS applications on 32-bit Windows. Emulated 16-bit code needs real segment semantics, so the 16-bit subsystem builds LDT entries on demand. Legacy tools that implement far calls, call gates, or their own segmented address spaces also touched these tables.
Everything about this stack is 32-bit x86 territory. Microsoft's own documentation for the related API GetThreadSelectorEntry, which reads descriptor-table entries, notes that it "is only functional on x86-based systems" — and that is a good summary of where the entire LDT story lives.
Descriptors are powerful: a malformed one can crash the machine, and a crafted one can be abused to escalate privileges. Windows therefore validates every descriptor a user-mode process tries to install before accepting it. Analyses of Windows' LDT handling show that these rules are enforced:
The segment must stay in user space. The base address and the base-plus-limit range must fall inside the user-mode address range; descriptors reaching into kernel space are rejected.
The descriptor must be user-accessible. The DPL field must be 3 (user mode). Kernel-privilege descriptors cannot be requested from user mode.
Only plain code and data segments are allowed. System descriptors — call gates, task state segments, and similar — are refused. This blocks the classic call-gate privilege-escalation trick.
The descriptor must be structurally valid per the CPU rules: consistent limit/granularity encoding, reserved bits clear, valid type encoding for code/data segments.
If the supplied descriptor violates any of these checks, the call fails with ERROR_INVALID_LDT_DESCRIPTOR (564). Sibling checks around the same API produce the related codes ERROR_INVALID_LDT_OFFSET (563) and ERROR_INVALID_LDT_SIZE (561), described at the end of this article.
The calls involved are part of the undocumented low-level layer: the kernel32 entry point commonly known as SetLdtEntries, the native NtSetLdtEntries system service, and NtSetInformationProcess with the process-LDT information class. Ordinary applications never call these directly; the practical callers are the 16-bit subsystem and rare tools that deliberately manage segment descriptors. That is why error 564 is so uncommon — and why treating it like an ordinary Windows glitch leads to the wrong fixes.
Legacy 16-bit or DOS software on 32-bit Windows. Old games, business applications, and especially old installers (16-bit setup programs from the 1990s) run under NTVDM and depend on correct LDT setup. If the 16-bit subsystem is missing, damaged, or cannot satisfy the descriptors the program asks for, setup fails and error 564 can surface.
16-bit software on 64-bit Windows. On x64 and ARM editions there is no NTVDM and no support for 16-bit x86 code of any kind — including DOS programs. Such software fails outright there, usually with a "16-bit application not supported" style message before any descriptor work happens. Windows 11 ships only in 64-bit editions, so this affects every Windows 11 user who tries to run such software. In practice, error 564 itself is a 32-bit x86 phenomenon.
Low-level tools with custom segment descriptors. Some legacy tools — emulators, system utilities, and security products from the 16-bit era — installed their own LDT entries. When such a tool passes a descriptor that Windows rejects, error 564 is the result.
Your own code. If a driver test harness, a game mod, or a compatibility layer calls SetLdtEntries/NtSetLdtEntries and gets 564 back, the descriptor you built is invalid — see the developer section below.
Note what is not on this list: bad RAM, a failing disk, outdated GPU drivers, a misconfigured BIOS, or "conflicting apps" in general. Those can cause other errors, but they cannot make a correctly formed descriptor pass or a malformed one fail. The validation rules are fixed kernel logic.
Before changing anything, spend two minutes identifying exactly what is failing:
Confirm the code. Check that it really is 564 / 0x234 / 0x80070234. If the dialog shows a different number, you have a different problem.
Identify the failing process. Note which executable reports the error. If it is ntvdm.exe or a 16-bit setup.exe/install.exe, you are in NTVDM territory. If it is a modern 64-bit application, the problem is inside that application.
Check your Windows architecture.Settings > System > About shows "System type": 64-bit or 32-bit. This determines which fixes below apply.
On 32-bit Windows, check whether NTVDM is installed. Open an elevated PowerShell and run:
A state of Disabled or a missing feature explains why 16-bit programs fail.
Look at the event log. Event Viewer (Windows Logs > Application around the failure time) often names the faulting module and process, which tells you whether the failing component is the 16-bit subsystem or the application itself.
Before the targeted steps below, do two cheap sanity checks: reboot once, and install any pending Windows updates (including optional ones). Updates service the very components — such as the 16-bit subsystem on 32-bit editions — that this error can involve. Then work through the fixes in order.
Since Windows is rejecting a descriptor supplied by software, the highest-value fix is to change the software:
Check the vendor for a 32-bit or 64-bit build of the application. A native build needs no LDT setup at all.
Check for a newer version or patch. Modern releases of legacy tools usually dropped custom descriptor tricks.
For old commercial software, look for a re-release on a modern platform or a supported successor product.
If the failing program is an installer, try installing from a newer package — many vendors ship 32-bit installers even for old products.
2. Restore 16-Bit Support (NTVDM) on 32-Bit Windows#
If a 16-bit or DOS program fails on 32-bit Windows, the first thing to verify is the 16-bit subsystem itself. Microsoft ships NTVDM as a Feature on Demand on x86 editions of Windows 10, and it must be enabled explicitly. From an elevated command prompt or PowerShell:
To turn it off again (recommended by Microsoft for managed environments that no longer need 16-bit apps):
DISM /online /disable-feature /featurename:NTVDM
After enabling the feature, reboot and retry the program. Keep in mind Microsoft's position: NTVDM is in maintenance mode, receives only limited support, and is not recommended for new use.
On 64-bit Windows (including all of Windows 11) there is no NTVDM and no native execution of 16-bit x86 code. Your options are:
Run 32-bit Windows in a virtual machine on the same PC and install the legacy program there. Keep the VM isolated and offline if possible, and remember that Windows 10 left public support on October 14, 2025 — a VM for legacy use should be treated as a quarantined environment, not a daily driver.
Use a dedicated emulator for DOS-era software (for example, a DOS emulator for pure DOS programs) instead of the Windows subsystem.
Migrate the application. For businesses, Microsoft's free App Assure program helps with application compatibility and OS upgrade issues, including getting off NTVDM-dependent software.
4. Use Compatibility Mode and the Program Compatibility Troubleshooter#
If the program is 32-bit but was written for an older Windows release, compatibility shims may help:
Right-click the program's .exe or shortcut and choose Properties > Compatibility.
Try Compatibility mode for the Windows version the program was built for, or run Troubleshoot compatibility.
Alternatively, open Settings > System > Troubleshoot > Other troubleshooters, find Program Compatibility Troubleshooter, and run it.
This cannot repair a genuinely invalid descriptor in a 16-bit program, but it does fix the many ordinary compatibility mismatches that produce error dialogs while installing legacy software.
If the 16-bit subsystem or other OS components are damaged on a 32-bit installation (crashes during NTVDM startup, missing files, unexplained corruption), repair the system image. Open an elevated command prompt and run:
Microsoft's guidance is to run DISM first so the component store is healthy, then let System File Checker replace damaged protected files from it. Reboot afterwards. This fixes genuine OS corruption — it is not a universal remedy for an application-supplied bad descriptor.
If the error started right after a change (a new low-level utility, a system update, a driver package with an overlay component), roll the system back:
Open Create a restore point from the Start menu and choose System Restore.
Pick a restore point dated before the problem first appeared and follow the wizard.
You can also start System Restore from the Windows Recovery Environment (Troubleshoot > Advanced options > System Restore). Restore points roll back system files and settings, not personal files.
As a last resort, resetting or reinstalling Windows will clear any software-side fault — but plan for data loss, back up first, and only do this after the targeted steps above have failed.
Some steps that get recommended for random Windows errors are irrelevant here, and a few are risky:
Do not flash or reset the BIOS/UEFI firmware. Descriptor validation happens in the Windows kernel against fixed rules; firmware settings cannot change those rules. A failed BIOS flash, on the other hand, can brick the machine.
Skip registry cleaners and "driver updater" utilities. Bulk-updating or rolling back device drivers does not change how Windows validates a segment descriptor, and some of these utilities install exactly the kind of low-level filter drivers that cause new problems.
Do not bulk-uninstall security software "just in case." Uninstall programs that are actually implicated (the failing executable's vendor tools), not random applications.
Ignore advice to buy more RAM, defragment the disk, or underclock the CPU for this error. None of these interact with segment-descriptor setup.
If you are seeing error 564 from code you maintain, the fix is on your side. Practical checklist:
Decode the error properly. Capture it immediately after the failing call:
DWORD err = GetLastError();if (err == ERROR_INVALID_LDT_DESCRIPTOR) { // 564 = 0x234: the descriptor we supplied failed validation}
Audit the descriptor fields against the rules Windows enforces and the CPU's descriptor format:
Type/S bits describe a plain code or data segment — never a call gate, TSS, or other system descriptor.
DPL is 3 — user-mode accessible.
Base and base + limit lie entirely in user space.
Limit and granularity bits are consistent (the G flag scales the 20-bit limit by 4 KB pages).
The selector is aligned correctly (otherwise you get error 563, ERROR_INVALID_LDT_OFFSET), and the LDT grows in even selector counts (otherwise error 561, ERROR_INVALID_LDT_SIZE).
Inspect what is actually installed. On x86 systems, the documented GetThreadSelectorEntry API can read back a descriptor table entry for a thread, which is useful for verifying your base/limit encoding.
Stop depending on this mechanism. The LDT-installing APIs (SetLdtEntries, NtSetLdtEntries, the process-LDT information class) are undocumented, unsupported for general application use, and tied to 32-bit x86 Windows. For per-thread state, use TLS; for interop with 16-bit code, isolate that code in its own process or emulator; for anything else, flat addressing is the future-proof answer.
Trust the code, not the prose. Error 564 is one of the few Windows errors whose meaning is fully literal: a bad descriptor was supplied. Diagnose the supplier of that descriptor first.
Match the fix to the architecture. NTVDM fixes apply only to 32-bit x86 Windows; on 64-bit Windows the answer is virtualization, emulation, or migration.
Prefer vendor updates over system repair. A newer build of the failing program removes the problem at the source; system repair tools only help when the OS components themselves are damaged.
Keep legacy isolation. 16-bit software on an unsupported Windows version in a VM is a reasonable last resort, but keep it network-restricted and backed up.
For developers: treat descriptor tables as read-only. If your design needs custom segment descriptors, document why, validate every field before the call, and have a fallback for 64-bit Windows where this entire path is unavailable.
The error invalid LDT descriptor is narrow but well-defined: Windows refused a segment descriptor that some program tried to install in the process Local Descriptor Table. It points to legacy 16-bit-era software, a missing or damaged NTVDM subsystem on 32-bit Windows, or a low-level tool that builds its own x86 descriptors — not to hardware faults, BIOS settings, or generic system corruption.
Fix it by attacking the source: update or replace the failing program, restore NTVDM on 32-bit Windows where 16-bit support is legitimate, run ancient software inside a virtual machine or emulator on 64-bit Windows, and use compatibility mode or system-file repair only for the problems they actually solve. If your own code produces error 564, validate the descriptor against the documented x86 format and Windows' restrictions — and plan to move away from custom segmentation entirely.
M. Jurczyk, G. Coldwind, "GDT and LDT in Windows kernel vulnerability exploitation", Hispasec, 2010 — documented restrictions on user-mode LDT entries and the LDT management APIs: http://vexillium.org/dl.php?call_gate_exploitation.pdf