| Previous | Next |
| D2DERR_BITMAP_CANNOT_DRAW | D2DERR_ORIGINAL_TARGET_NOT_BOUND |
D2DERR_OUTSTANDING_BITMAP_REFERENCES
D2DERR_OUTSTANDING_BITMAP_REFERENCES means that Direct2D cannot complete the operation while code still holds references to the current target bitmap. This protects the target from being changed or released while it is still in use.
What to check
- Release temporary references to the target bitmap before changing or clearing the target.
- Make COM ownership explicit in helper functions that return images or bitmaps.
- Check cached smart pointers and effect inputs that may retain the target longer than expected.
Find and release the outstanding references; recreating the target without fixing ownership will only move the failure.
Microsoft: Direct2D error codes
Looking for a different code? Search another status or error code.