| Previous | Next |
| WINCODEC_ERR_UNSUPPORTEDVERSION | WINCODEC_ERR_ALREADYLOCKED |
WINCODEC_ERR_NOTINITIALIZED
WINCODEC_ERR_NOTINITIALIZED means that a WIC component was used before the initialization required by that interface completed. WIC decoders, encoders, transforms and streams have separate initialization methods; constructing a COM object alone is not enough.
What to check
- Check the HRESULT from the component's
Initializemethod before using any dependent method. - Ensure that the stream, bitmap source, frame or option object passed to initialization remains valid for the lifetime required by the component.
- Do not continue after a failed initialization only because an output interface pointer is non-null.
The first failed call is generally more useful than this later lifecycle error.
Microsoft: WIC decoding overview
Looking for a different code? Search another status or error code.