D1178: Custom Dash Style Requires Dash Array

Creating a stroke style with DASH_STYLE_CUSTOM requires a dash array.

 

Possible Causes

When the application attempted to create an ID2D1StrokeStyle, it used the D2D1_DASH_STYLE_CUSTOM attribute but supplied a NULL dash array.

Possible Fixes

If the application requires custom dashes, ensure that a valid dash array is specified. See CreateStrokeStyle for an example. If a built-in dash style is acceptable, leave the dash array as NULL and use a specifier such as D2D1_DASH_STYLE_DASH.