| Previous | Next |
| TPC_E_INVALID_RIGHTS | TPC_E_OUT_OF_ORDER_CALL |
VFW_E_ADVISE_ALREADY_SET
Meaning
Windows documents VFW_E_ADVISE_ALREADY_SET as “An overlay advise link already exists”. In practical terms, it is returned when an IOverlay advise link is already installed when code attempts to set another one.
Likely causes
- Possible cause 1: initialization runs twice without clearing the previous advise sink.
- Possible cause 2: renderer reconnection creates a new owner while the old link remains.
- Possible cause 3: multiple controllers compete for one overlay notification relationship.
Evidence to collect
- Capture 1: overlay object identity and existing advise sink.
- Capture 2: first Advise call, owner and graph generation.
- Capture 3: reconnection and teardown sequence.
Correct handling and retry
- Corrective action 1: reuse the existing link or cancel it before setting a replacement.
- Corrective action 2: assign one owner to overlay notification lifetime.
- Corrective action 3: clear advise state during disconnect and destruction.
Retry guidance. Retry only after the old advise link is successfully removed.
Difference from nearby HRESULTs
VFW_E_NO_ADVISE_SET occurs when canceling a link that was never established; it occurs when establishing a duplicate link.
Practical scenario
A video window is recreated but the original controller remains advised to the overlay; orderly unadvise prevents it.
Official Microsoft references
Looking for a different code? Search another status or error code.
