Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.02 KB

d1165.md

File metadata and controls

37 lines (24 loc) · 1.02 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1165 Read And Discard Map Options Are Incompatible
5b1f47c8-bfbf-4251-bcfb-a8bf0e60d308
D2D1\_MAP\_OPTIONS\_READ is not compatible with D2D1\_MAP\_OPTIONS\_DISCARD
D1165 Read And Discard Map Options Are Incompatible Direct2D
apiref
D1165 Read And Discard Map Options Are Incompatible
NA
reference
05/31/2018

D1165: Read And Discard Map Options Are Incompatible

D2D1_MAP_OPTIONS_READ is not compatible with D2D1_MAP_OPTIONS_DISCARD

 

Possible Causes

Direct2D may output this message if an application calls ID2D1Bitmap1::Map with both D2D1_MAP_OPTIONS_READ and D2D1_MAP_OPTIONS_DISCARD options.

Possible Fixes

The READ and DISCARD options do not agree with each other because allowing read access to undefined data has limited usefulness for an application. See D2D1_MAP_OPTIONS for a description of map options. When calling ID2D1Bitmap1::Map, consider which type of access the application needs.