| Previous | Next |
| D2DERR_LAYER_ALREADY_IN_USE | D2DERR_WRONG_RESOURCE_DOMAIN |
D2DERR_POP_CALL_DID_NOT_MATCH_PUSH
D2DERR_POP_CALL_DID_NOT_MATCH_PUSH means that the code attempted to pop a Direct2D drawing state that does not match the most recent pushed state. Layers and axis-aligned clips use different push/pop pairs and must be unwound in strict last-in, first-out order.
What to check
- Match
PushLayerwithPopLayerandPushAxisAlignedClipwithPopAxisAlignedClip. - Make every early return and exception path unwind the same scopes it entered.
- Use scoped helpers for push/pop pairs when the rendering code has multiple exits.
Fix the call-stack order; retrying the same sequence will reproduce the error.
Microsoft: Direct2D error codes
Looking for a different code? Search another status or error code.