Επεξεργασία

Κοινή χρήση μέσω


D1187: SetTarget Called on Outstanding Dc

SetTarget was called in between a GetDC/ReleaseDC pair.

 

Possible Causes

The application obtained an ID2D1GdiInteropRenderTarget and called its GetDC method, and then called Flush or EndDraw before calling ReleaseDC.

Possible Fixes

Ensure that the application calls ReleaseDC before calling Flush or EndDraw, and that each call to ReleaseDC is matched with a prior call to GetDC. Direct2D will not attempt to operate on a GDI target resource if its GDI device context is currently being used by the application.