Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 904 Bytes

d1172.md

File metadata and controls

38 lines (24 loc) · 904 Bytes
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.
D1172 Invalid To Unmap Nonmapped Bitmap Direct2D
apiref
D1172 Invalid To Unmap Nonmapped Bitmap
NA
reference
05/31/2018

D1172: Invalid To Unmap Nonmapped Bitmap

An attempt was made to Unmap a bitmap that is not mapped.

 

Possible Causes

Direct2D may output this message and report an error if an application attempts to unmap a bitmap which not yet mapped using ID2D1Bitmap1::Map.

Possible Fixes

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.