| Previous | Next |
| ERROR_INVALID_DATA | ERROR_INVALID_DRIVE |
ERROR_OUTOFMEMORY
A required allocation failed
ERROR_OUTOFMEMORY is another Win32 memory-allocation failure used by many user-mode components and APIs. Its practical diagnosis is similar to ERROR_NOT_ENOUGH_MEMORY, but the exact resource is determined by the failing subsystem.
Diagnostic questions
- What allocation size and object count preceded the failure?
- Is the process approaching its address-space or commit limit?
- Does the failure follow repeated operations, suggesting a leak?
- Can the input cause an excessively large image, array, document, or decompression buffer?
Handling the failure
Abort the current operation without corrupting existing state, release temporary allocations, and provide a clear error to the caller. Treat recurrence under ordinary load as a defect that requires profiling.
References
Looking for a different code? Search another status or error code.