| Previous | Next |
| STATUS_INVALID_TASK_NAME | STATUS_THREAD_ALREADY_IN_TASK |
STATUS_INVALID_TASK_INDEX
The task index does not identify a valid slot
Windows returns STATUS_INVALID_TASK_INDEX while handling job, task, callback, or isolation state. The supplied task index is outside the current table, generation, or scope. A stale cached index can become invalid after task teardown or reconfiguration.
Record the index together with task-set generation and owning object; reacquire it from the authoritative API.
Indexes are often valid only for one task-set generation. If the value was cached, record when it was obtained and whether the task table was rebuilt before use; reacquiring the index is preferable to range-clamping it.
References
Looking for a different code? Search another status or error code.