Windows error 0x8899000A, -2003238902

Detailed Error Information

D2DERR_INVALID_CALL[1]

MessageA call to this method is invalid.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)true
FacilityCode2201 (0x899)
NameFACILITY_DIRECT2D[1]
Error Code10 (0x000a)

Questions

0votes
1answer

Direct2d ID2D1GradientStopCollection1 - how to create

I'm trying to create a gradient with Direct2D 1.1. Specifically, I'm trying to create an ID2D1GradientStopCollection1. my code: ID2D1GradientStopCollection1* native = nullptr; hr = context2_->CreateGradientStopCollection( (D2D1_GRADIENT_STOP*)gradientStops, gradientStopsCount, D2D1_COLOR_SPACE_SRGB, D2D1_COLOR_SPACE_SRGB, D2D1_BUFFER_PRECISION_UNKNOWN, D2D1_EXTEND_MODE_CLAMP, D2D1_COLOR_INTERPOLATION_MODE_STRAIGHT, &native ); // hr returns 0x8899000a : A call to this method is invalid. Note: context2_ is of [...] read more
c++
windows
direct2d

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0