What does Windows error code 14086 (ERROR_SXS_MULTIPLE_DEACTIVATION) mean?

 
Previous Next
ERROR_SXS_INVALID_DEACTIVATION ERROR_SXS_PROCESS_TERMINATION_REQUESTED

ERROR_SXS_MULTIPLE_DEACTIVATION

ERROR_SXS_MULTIPLE_DEACTIVATION — The same activation context was deactivated more than once.

The activation cookie has already been consumed by a prior DeactivateActCtx call. A second deactivation corrupts the intended stack discipline and Windows rejects it.

This often occurs when both a normal path and an error-cleanup path release the same context.

What to check

  • Give each activation cookie one clear owner.
  • Reset or invalidate the stored cookie immediately after deactivation.
  • Use a scoped wrapper that prevents double cleanup in all return and exception paths.

Microsoft: DeactivateActCtx

Microsoft: Activation Context reference

Microsoft: About Side-by-Side assemblies


Looking for a different code? Search another status or error code.