Since the exception is different and this is now on BETA7, I started a new thread.
I may have found a stress test to improve the SharpDX rendering. I have a tool that ran fine on NT7, but I have recently started to code it under NT8. One part puts us trade stats and it looks like it does this on each call to "OnMarketData()". It uses Draw.TextFixed(), for now I can probably slow down the refresh of this screen update, but the goal would be to get the SharpDX rendering to be stable.
Here is the Exception:
Exception Caught: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at SharpDX.Direct2D1.RenderTarget.CreateSolidColorBrush(Color4 color, Nullable`1 brushProperties, SolidColorBrush solidColorBrush) at NinjaTrader.Gui.DxExtensions.<>c__DisplayClass0_0.<ToDxBrush>b__0() at NinjaTrader.Gui.DxExtensions.ToDxBrush(Brush brush, RenderTarget renderTarget) at NinjaTrader.Gui.Stroke.set_RenderTarget(RenderTarget value) at NinjaTrader.NinjaScript.DrawingTools.Draw.TextFixedCore(NinjaScriptBase owner, String tag, String text, TextPosition textPosition, Brush textBrush, SimpleFont font, Brush outlineBrush, Brush areaBrush, Nullable`1 areaOpacity, Boolean isGlobal, String templateName, DashStyleHelper outlineDashStyle, Int32 outlineWidth) at NinjaTrader.NinjaScript.Strategies.LOM.LocalOrderManager.UpdateStatusBox() at NinjaTrader.NinjaScript.Strategies.LOM.LocalOrderManager.OnMarketData(MarketDataEventArgs e)
Draw.TextFixed(m_Strat,"PnL", m_Display, TextPosition.TopLeft,Brushes.Red, new SimpleFont("Arial", 8), Brushes.Black, Brushes.LightGray, 100);
Comment