the attached script is crashing NT8 from an unhandled exception, despite the script doing almost nothing and it setting up the timer the same wayas the BarTimer indicator does it.
Various information appears in the trace file, it can be different things each time really, but this one is pretty consistent. It can appear after a few successful timer ticks have occurred.
2017-12-04 10:32:57:089 Object reference not set to an instance of an object.
2017-12-04 10:32:57:093 System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.DrawTextLine(DrawingContext drawingContext, Point origin, MatrixTransform antiInversion)
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.Draw(DrawingContext drawingContext, Point origin, InvertAxes inversion)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayout.#p3b.#2hc(ITextView #N5b, Rect #adc)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayout.#2hc(ITextView #N5b, Rect #adc)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.RenderLines()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.PerformViewLineLayout()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCa llback(Object arg)
at System.Windows.Media.MediaContext.FireInvokeOnRend erCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHan dlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHan dler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
You can see in the code that no actions are being attempted on time tick; I've removed all that trying to get the damn thing running.
What's going on?
Thanks,
saltminer
Comment