D1115: Enumeration Value Not Valid
The parameter [parameter] with value [value] for interface::method is not a valid enumeration value.
Placeholders
-
parameter
-
The name of the parameter that received the unexpected type.
-
value
-
The invalid enumeration value.
-
interface
-
The name of the interface to which the method belongs.
-
method
-
The name of the method that received the invalid enumeration value.
Examples
The following example specifies a D2D1_RENDER_TARGET_TYPE enumeration value of 30, which is outside the expected range.
hr = m_pD2DFactory->CreateHwndRenderTarget(
D2D1::RenderTargetProperties((D2D1_RENDER_TARGET_TYPE)(30)),
D2D1::HwndRenderTargetProperties(m_hwnd, size),
&m_pRenderTarget
);
This example produces the following debug message:
D2D DEBUG ERROR - The parameter [renderTargetProperties->type] with value [30]
for ID2D1Factory::CreateHwndRenderTarget is not a valid enumeration value.
Possible Causes
A parameter used an invalid enumeration value.
Fixes
Use a valid enumeration value.
Note
The debug layer currently checks only the individual enumeration values; it does not check whether a bitwise combination is valid.