| Previous | Next |
| ERROR_SXS_CORRUPTION | ERROR_SXS_INVALID_DEACTIVATION |
ERROR_SXS_EARLY_DEACTIVATION
ERROR_SXS_EARLY_DEACTIVATION — Code tried to deactivate an activation context before contexts above it were deactivated.
Activation contexts must be removed in last-in, first-out order. This error indicates that a caller tried to deactivate an older context while a newer one was still active on the current thread.
It is a logic error in code using the activation-context API, rather than an operating-system component failure.
What to check
- Deactivate contexts in the reverse order in which they were activated.
- Keep each activation cookie with the scope that owns it.
- Audit error and cancellation paths for skipped nested cleanup.
Microsoft: Activation Context reference
Looking for a different code? Search another status or error code.
