| Previous | Next |
| STATUS_SXS_INVALID_DEACTIVATION | STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY |
STATUS_SXS_MULTIPLE_DEACTIVATION
A context is being deactivated more than once
STATUS_SXS_MULTIPLE_DEACTIVATION indicates that a deactivation path is trying to remove an activation that was already removed. It usually points to duplicate cleanup, a stale cookie, or two owners both believing that they own the same activation scope.
Do not treat it as a manifest validation error. The manifest may have created a valid context; the failure occurs later in stack management. It also differs from early deactivation: a multiple deactivation follows a completed deactivation, whereas early deactivation attempts to pop a still-active lower frame.
What to inspect
- Make ownership of each activation cookie explicit and invalidate the local variable after successful deactivation.
- Audit RAII/destructor and error-cleanup paths so both cannot execute after the same scope has ended.
- Include thread ID and activation depth in diagnostic logs to separate duplicate cleanup from cross-thread misuse.
References
- Microsoft: activation contexts
- Microsoft: ActivateActCtx
- Microsoft: DeactivateActCtx
- Wine: activation-context implementation
Looking for a different code? Search another status or error code.