I'm trying to add text to the Rectangle Extendable drawing tool (Rectangle Tool - Extendable from all sides - NinjaTrader Ecosystem).
The drawing tool is working but when I try to re-open the workspace, I get these errors in the log:
' 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: Objects used together must be created from the same factory instance.'
' A direct X error has occurred while rendering the chart:
HRESULT: [0x88990012], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_FACTORY/WrongFactory],
Message: Objects used together must be created from the same factory instance. '
I can't figure out how to adapt the script to prevent these errors. Can someone help me please?
Here is the script:
Rect Ext with Text script.txt
Thanks

Comment