Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.06 KB

d1180.md

File metadata and controls

38 lines (24 loc) · 1.06 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1180 BeginDraw Incorrect State
08b74e80-d44b-431a-bb1a-147bfd0e0573
BeginDraw was called multiple times, without a corresponding call to EndDraw.
D1180 BeginDraw Incorrect State Direct2D
apiref
D1180 BeginDraw Incorrect State
NA
reference
05/31/2018

D1180: BeginDraw Incorrect State

BeginDraw was called multiple times, without a corresponding call to EndDraw.

 

Possible Causes

The application made multiple calls to BeginDraw without calling EndDraw on the same target. While using Direct2D, applications should match each call to BeginDraw with a subsequent EndDraw. Alternatively, this message may occur if the target is in an erroneous state, and the BeginDraw call did not allow the target to be renderable.

Possible Fixes

Ensure that each call to BeginDraw is matched with a subsequent EndDraw. When submitting commands to a target using Flush or EndDraw, verify that the returned result is S_OK before attempting to use the target again.