| Previous | Next |
| MF_E_PROPERTY_VECTOR_REQUIRED | MF_E_BYTESTREAM_NOT_SEEKABLE |
MF_E_OPERATION_CANCELLED
What the code tells you
MF_E_OPERATION_CANCELLED means an asynchronous Media Foundation operation ended because cancellation was requested or propagated.
The result comes from the async operation and callback generation that report completion. A representative case is a source-resolution request is cancelled when the UI replaces the URL and a stale callback later reports this result.
Build a useful incident record
| Observation | What to capture |
|---|---|
| Primary discriminator | the cancellation token or shutdown call, operation cookie, callback ordering, object instance, and whether user action or timeout initiated cancellation |
| Owning object | the async operation and callback generation that report completion, including its object identity and generation |
| Timeline marker | the call immediately before an asynchronous Media Foundation operation ended because cancellation was requested or propagated and the completion event, callback, or state change that followed |
| Comparison artifact | one known-good run that changes only this condition: run once without issuing the cancel or shutdown request and compare the completion event |
An asynchronous Media Foundation operation ended because cancellation was requested or propagated. Preserve the original async operation and callback generation that report completion and the first result in the chain: a later UI message can replace this precise code with a generic playback, setup, network, or device failure.
Reproduce without erasing context
- Record this result,
0xC00D36ED, the returning method, process architecture, Windows build, and component version. - Capture the cancellation token or shutdown call, operation cookie, callback ordering, object instance, and whether user action or timeout initiated cancellation before retry logic changes the object.
- Perform this narrow comparison: run once without issuing the cancel or shutdown request and compare the completion event.
What the result does not prove
It does not by itself prove a machine-wide media-platform failure. In this case, a network timeout or stream error is a failure of the work itself, not a requested cancellation.
Comparison with adjacent conditions
| Result | Different condition |
|---|---|
MF_E_DISABLED_IN_SAFEMODE | The Media Foundation platform is disabled when the system is running in Safe Mode. |
MF_E_MEDIAPROC_WRONGSTATE | MediaProc is in the wrong state. |
MF_E_INVALID_POSITION | The operation on the current offset is not permitted. |
Resolution and proof
The supported corrective direction is to treat intentional cancellation as a terminal outcome; if unintended, fix ownership and callback lifetime rather than retrying blindly.
For an incident, keep the symbolic constant together with 0xC00D36ED.
Technical references
Looking for a different code? Search another status or error code.