| Previous | Next |
| STATUS_ALREADY_INITIALIZED | STATUS_ENCLAVE_IS_TERMINATING |
STATUS_ENCLAVE_NOT_TERMINATED
The enclave has not completed termination
Windows returns STATUS_ENCLAVE_NOT_TERMINATED while enforcing the secure-enclave lifecycle or memory boundary. An operation requiring a fully terminated enclave ran while teardown was incomplete. Reusing or freeing backing resources at this point risks racing enclave cleanup.
Track terminate requests, outstanding threads and references, and wait for the documented lifecycle transition before reinitialization or release.
A timeout or delayed thread exit can keep the enclave in this state after a terminate request. Capture outstanding enclave users at the transition point instead of repeatedly issuing terminate or create operations.
References
Looking for a different code? Search another status or error code.