| Previous | Next |
| D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED | D2DERR_NO_HARDWARE_DEVICE |
D2DERR_INVALID_CALL
D2DERR_INVALID_CALL is a general Direct2D validation failure. The method was invoked with an argument combination, object relationship, or execution state that the API does not permit.
How to narrow it down
- Check the exact method contract, including nullable parameters, resource ownership, and required options.
- Verify that all objects belong to compatible factories, devices, and resource domains.
- Use the Direct2D debug layer in a development environment to obtain more specific diagnostics.
Unlike a device-loss result, this normally requires correcting the call sequence or arguments before retrying.
Microsoft: Direct2D error codes
Looking for a different code? Search another status or error code.