RPC_S_NOT_CANCELLED - 1826 (0x722)

Thread is not canceled.

Updated: Feb 21, 2026

Technical Meaning

The error code RPC_S_NOT_CANCELLED indicates that a thread or operation was attempted to be canceled, but the cancellation request could not be honored. This typically occurs in scenarios where an asynchronous operation is being executed and a cancel request is made, but the operation has already completed or cannot be interrupted.

Error Details

The error RPC_S_NOT_CANCELLED is specific to Remote Procedure Call (RPC) operations within the Windows API environment. It signifies that a cancellation attempt was made on an RPC call, but the operation had already concluded or could not be canceled due to its nature.

Usage Context

This error code is commonly encountered in applications that make use of asynchronous RPC calls and include mechanisms for canceling these calls. Developers should handle this error by ensuring proper cleanup and handling of completed operations.

Developer Interpretation

When an application encounters RPC_S_NOT_CANCELLED, it indicates that a cancellation request was made but could not be fulfilled. This may occur in various scenarios, such as when the operation has already completed or is inherently non-cancelable. Developers should interpret this error as a normal part of the operation's lifecycle and handle it appropriately without assuming an error condition.

Related Errors

  • RPC_S_CALL_CANCELED (1825): Indicates that a call was canceled successfully.
  • RPC_X_NO_CONTEXT (0x800706BA): Occurs when there is no context for the RPC operation.

FAQ

Q: What does RPC_S_NOT_CANCELLED mean?

A: It indicates that an attempt to cancel a thread or operation was unsuccessful because the operation had already completed or could not be interrupted.

Q: How should I handle this error in my application?

A: Treat it as a normal part of the operation's lifecycle. Ensure proper cleanup and handling of completed operations without assuming an error condition.

Summary

The RPC_S_NOT_CANCELLED error code is specific to RPC operations within Windows API environments, indicating that a cancellation request could not be honored. Developers should handle this error by ensuring appropriate cleanup and normal operation handling.