ERROR_INVALID_LDT_SIZE - 561 (0x231)

Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_INVALID_LDT_SIZE error code, with the numeric value of 561 and hexadecimal representation of 0x231, is returned when an attempt is made to set the size of a Local Descriptor Table (LDT) improperly or with an invalid value. This error indicates that the system encountered a problem related to descriptor table management.

Error Details

The LDT is a data structure used by the operating system for managing memory segments and their associated descriptors. The error occurs when the attempt to modify the size of the LDT does not adhere to the required constraints, such as setting an odd number of selectors or exceeding the maximum allowed size.

Usage Context

This error typically arises in scenarios where low-level operations involving descriptor tables are performed, often by system services or kernel modules. Developers should be aware that this error can occur during initialization or configuration phases of certain applications or drivers.

Developer Interpretation

When encountering ERROR_INVALID_LDT_SIZE, developers should review the parameters passed to functions related to LDT management and ensure they meet the necessary requirements. Specifically, the size set for the LDT must be an even number of selectors, as each selector represents a memory segment descriptor.

Related Errors

  • ERROR_BAD_LENGTH (0x80070002): Indicates that a function was passed a buffer of incorrect length.
  • ERROR_INVALID_PARAMETER (0x80070057): A generic error indicating an invalid parameter was provided to a function.

FAQ

Q: What does the ERROR_INVALID_LDT_SIZE mean?

A: It indicates that an attempt was made to set the size of the LDT improperly or with an invalid value.

Q: How can I resolve this error?

A: Ensure that the size set for the LDT is an even number of selectors and does not exceed the maximum allowed size.

Summary

The ERROR_INVALID_LDT_SIZE error code signifies a problem related to descriptor table management, specifically with setting the size of the Local Descriptor Table. Developers should validate their parameters and ensure they meet the necessary constraints to avoid this error.