SharpDX.Direct2D1.StrokeStyle mySS = new SharpDX.Direct2D1.StrokeStyle(NinjaTrader.Core.Glo bals.D2DFactory, new SharpDX.Direct2D1.StrokeStyleProperties());
it should be disposed.
However, when we create i.e. Stroke object:
var myS = new Stroke(..);
this doesnt have dispose, but it contains member (myS.StrokeStyle) which has dispose().
so, my question is, how to correctly handle such cases, when we create i.e. "new Stroke()" in indicators, should we make save them into field (i.e. myStr) and call `myS.StrokeStyle.Dispose()` in OnRenderTargetChanged (as we do with other disposables) ?
Or we should ignore them?
Comment