2017-05-04 09:18:08:662 ERROR: A direct X error has occurred while rendering the chart: HRESULT: [0x88990012], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_FACTORY/WrongFactory], Message: Unknown
2017-05-04 09:18:08:675 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990012], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_FACTORY/WrongFactory], Message: Unknown'
2017-05-04 09:21:40:893 (AMP CQG) Cbi.Account.CreateOrder: orderId='a053b08d8f0c4c9b8e6bbdf663dd4602' account='Sim101' name='' orderState=Initialized instrument='ES 06-17' orderAction=Sell orderType='MIT' limitPrice=0 stopPrice=2386 quantity=1 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=70 time='2017-05-04 09:21:40' gtd='2099-12-01' statementDate='2017-05-04' id=-1
All my indicators that override OnRender() use try/catch. Had the error been caught there my code would have provided information about which chart, which indicator, and which method threw the error. Since none of this appears in the error log, try/catch in the OnRender overrides did not catch it. So, I have absolutely no idea which window, which chart, which indicator, or which method threw it.
Comment