title | ms.assetid | description | keywords | topic_type | api_name | api_type | ms.topic | ms.date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
D1172 Invalid To Unmap Nonmapped Bitmap |
8669bb39-b6ae-4e72-93ea-4877211c7ba2 |
An attempt was made to Unmap a bitmap that is not mapped. |
|
|
|
|
reference |
05/31/2018 |
An attempt was made to Unmap a bitmap that is not mapped.
Direct2D may output this message and report an error if an application attempts to unmap a bitmap which not yet mapped using ID2D1Bitmap1::Map.
In the same way that ID2D1RenderTarget::EndDraw should follow calls to ID2D1RenderTarget::BeginDraw, ensure that ID2D1Bitmap1::Unmap follows calls to ID2D1Bitmap1::Map. Do not call ID2D1Bitmap1::Unmap multiple times to unmap a bitmap.