| Previous | Next |
| WINCODEC_ERR_STREAMREAD | WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT |
WINCODEC_ERR_STREAMNOTAVAILABLE
WINCODEC_ERR_STREAMNOTAVAILABLE means that the WIC codec cannot access the stream needed for the requested operation. The stream may not have been initialized, may have been released, may not support the required access mode, or may not be retained by a lazy decoder.
What to check
- Keep the source stream alive for as long as the decoder or frame can perform deferred reads.
- Choose metadata cache and decode options deliberately; on-demand behavior can read the stream later than initial decoder construction.
- Verify that a custom stream implements the methods and access modes used by the selected codec.
If the issue appears only after an object crosses an asynchronous boundary, inspect ownership and COM reference lifetimes.
Microsoft: WIC decoder initialization
Looking for a different code? Search another status or error code.