Time Category Message
8/28/2020 3:34:33 PM NinjaScript Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: The object was not in the correct state to process the method. '
I am reading the Help guide section on OnRenderTargetChanged() and I noticed I am not calling this method at all in my code. However, I am using a function to do the drawing in OnRender so I am not sure how to directly use OnRenderTargetChanged() since my DX brushes are created and destroyed inside the function. My first question, is: Should I avoid using a draw function in OnRender and instead write the drawing code directly so that the DX brushes are available to OnRenderTargetChanged()? Could this be my problem or should I look elsewhere?
Comment