What does Windows error code 14082 (ERROR_SXS_CORRUPT_ACTIVATION_STACK) mean?

 
Previous Next
ERROR_SXS_ASSEMBLY_MISSING ERROR_SXS_CORRUPTION

ERROR_SXS_CORRUPT_ACTIVATION_STACK

ERROR_SXS_CORRUPT_ACTIVATION_STACK — The current thread activation-context stack is corrupt.

This is primarily a developer-facing error. Activation contexts are pushed onto a stack for the current thread; a corrupted stack usually means incorrect lifetime, cross-thread use, or unbalanced activation/deactivation calls.

It is not normally fixed by installing another runtime. Debug the code that creates and switches activation contexts, or update the component that contains it.

What to check

  • Pair every successful ActivateActCtx call with a matching DeactivateActCtx call on the same thread.
  • Preserve and use the activation cookie returned by ActivateActCtx.
  • Use a scoped/RAII guard so exceptional paths cannot skip or duplicate deactivation.

Microsoft: ActivateActCtx

Microsoft: DeactivateActCtx

Microsoft: Activation Context reference


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