| Previous | Next |
| E_POINTER | E_FAIL |
E_ABORT
COM operation was aborted
E_ABORT is HRESULT 2147500036 (0x80004004) from winerror.h. The documented description is “Operation aborted.” The value must be interpreted at a cancellable COM, storage, binding, transfer, or user-driven operation.
The operation stopped before its normal completion because cancellation or abort was observed. The operational record needs the native value, symbolic constant, component build, and call phase; the message alone is insufficient.
Where the result appears
- This result may surface in a cancellable COM, storage, binding, transfer, or user-driven operation.
Separate caller state from runtime and server state first; otherwise cleanup and retry may target the wrong generation of the operation.
Typical causes and interpretation
Common cause categories are: the user cancelled; an owner object initiated shutdown; a callback requested termination; a parent transaction aborted dependent work. Each possible cause of this result predicts different outputs and recovery behavior, which should be verified explicitly.
Key distinction: the operation stopped before its normal completion because cancellation or abort was observed.
Correct handling and recovery
The appropriate recovery is to honor the cancellation, dispose resources owned by the attempt, reconcile any partial side effects, and retry only after a new explicit request. Repeat the operation only after the failed condition has changed and the caller can distinguish a duplicate effect.
Practical scenario
A document conversion is cancelled after a temporary file is created; the client deletes only that attempt’s file and reports cancellation rather than failure.
An automated test should verify raw HRESULT, output ownership, cleanup behavior, and the absence of an unsafe automatic retry.
Difference from related HRESULTs
E_PENDING means work has not completed yet; this result means the operation has been stopped.
The comparison matters operationally: one result may permit fallback while the other requires repair, cancellation, or state reconciliation.
References
Looking for a different code? Search another status or error code.