| Previous | Next |
| VFW_E_MPEG_NOT_CONSTRAINED | VFW_E_NO_TIME_FORMAT |
VFW_E_NOT_IN_GRAPH
Meaning
Windows documents VFW_E_NOT_IN_GRAPH as “Cannot perform the requested function on an object that is not in the filter graph”. Here, an operation is invoked on a filter or related object that is not currently part of the target filter graph.
Evidence worth preserving
- Evidence 1: filter identity and owning graph pointer.
- Evidence 2: add/remove timestamps and graph generation.
- Evidence 3: calling thread and outstanding interface references.
Relevant contract
Start with the filter graph, device or persisted configuration that first returned the result.
Conditions that can produce it
- Cause 1: the filter was removed during reconfiguration.
- Cause 2: the caller retained an interface from an earlier graph generation.
- Cause 3: the object was created but never added to the graph.
Correction strategy
- Action 1: validate membership before graph-scoped operations.
- Action 2: discard stale interfaces after topology replacement.
- Action 3: serialize removal with operations that require graph ownership.
Example incident
A UI caches a filter interface, rebuilds the graph, then calls a graph-scoped method on the removed instance; reacquiring the current filter avoids it.
Retry and recovery
Retry rule: Retry after adding the object to the intended graph or reacquiring it from the current topology.
How it differs from nearby results
VFW_E_NOT_FOUND means an object could not be located, whereas it means the object exists but is outside the graph required by the operation.
Official Microsoft references
Looking for a different code? Search another status or error code.