Windows error 0x88990001, -2003238911

Detailed Error Information

D2DERR_WRONG_STATE[1]

MessageThe object was not in the correct state to process the method.
Declared inwinerror.h

HRESULT analysis[2]

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

Questions

1vote
1answer

ID2D1DeviceContext EndDraw D2DERR_WRONG_STATE after drawing rectangle

I try to draw a rectangle using Direct2D. After initializing Direct2D device and Direct2D device context and setting up the render target, described in the following MSDN article, I tried to draw a rectangle as follows: HRESULT result; result = g_d2dContext->CreateSolidColorBrush( D2D1::ColorF(D2D1::ColorF::Blue), &g_SolidBrush ); D2D1_RECT_F rect = D2D1::RectF( g_targetRect.left + [...] read more
c++
directx
direct2d
hresult
drawrectangle
0votes
3answers

Cryptic HRESULT errors

The following EndDraw() function returns an HRESULT error code: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371924%28v=vs.85%29.aspx The documentation specifies: > If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT > error code and sets tag1 and tag2 to the tags that were active when the error > occurred. > > ...and then returns [...] read more
c++
windows
directx
hresult

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