| Previous | Next |
| D2DERR_SCREEN_ACCESS_DENIED | D2DERR_ZERO_VECTOR |
D2DERR_DISPLAY_STATE_INVALID
D2DERR_DISPLAY_STATE_INVALID means that Direct2D could not determine a stable display state required by the rendering operation. Display-mode changes, adapter changes, remote-session transitions, or a target that is being recreated can leave the old state unusable.
What to check
- Handle display, DPI, orientation, monitor, and device-change notifications by rebuilding size- or device-dependent resources.
- Do not reuse cached display assumptions after a window moves between monitors or the adapter changes.
- Retry only after the target and its resources have been recreated if the failure occurred at presentation time.
This code is a signal to refresh the rendering environment, not a request to change the content being drawn.
Microsoft: drawing with Direct2D
Looking for a different code? Search another status or error code.