| Previous | Next |
| D2DERR_WRONG_STATE | D2DERR_UNSUPPORTED_OPERATION |
D2DERR_NOT_INITIALIZED
D2DERR_NOT_INITIALIZED means that code called a Direct2D method before the target object completed the initialization required by that API. This can happen after partial construction, a failed setup path, or an attempt to use a resource before it is associated with a render target or device context.
What to check
- Check the HRESULT of the factory, device, render-target, bitmap, effect, or custom-resource creation call.
- Initialize all required properties before calling methods that consume the object.
- Do not continue with an object after a creation or initialization failure.
Keep initialization and first use in the same well-defined ownership path so that an error cannot leave a partially configured object visible to rendering code.
Microsoft: Direct2D error codes
Looking for a different code? Search another status or error code.
