Windows error 0x88990012, -2003238894

Detailed Error Information

D2DERR_WRONG_FACTORY[1]

MessageObjects used together must be created from the same factory instance.
Declared inwinerror.h

HRESULT analysis[2]

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

Questions

1vote
0answers

Using SharpDX Image effects

Forgive the code below, I'm quite out my depth with DirectX and really struggling to conceptualise the different parts. I'm trying to achieve this through SharpDX. I've managed to (in other code) render rectangles, images and text to screen without too much difficulty. However, these all leverage RenderTaget to draw [...] read more
vb.net
winforms
directx
sharpdx
imaging
0votes
1answer

Combination of ID2D1PathGeometry and ID2D1DeviceContext

My goal is to draw a geometry path in a render target provided by a ID2D1DeviceContext. I have an ID2D1Factory created by D2D1CreateFactory and the following code fails: CComPtr<ID2D1PathGeometry> m_pPathGeometry; fa->CreatePathGeometry(&m_pPathGeometry); CComQIPtr<ID2D1SolidColorBrush> b; D2D1_COLOR_F cc = { 1.0f,1.0f,1.0f,1.0f }; pRT->CreateSolidColorBrush(cc, &b); pRT->FillGeometry(m_pPathGeometry, b); When calling pRT->EndDraw(), I get a message [...] read more
c++
winapi
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