It 100% of the time crashes Nt8. ( I only use OnMarketData and the whole block underneath is within a try-catch, so it's internal error.)
Connection is Kinetick. Previously connected, but at the time of the crash it's not connected.
Chart has only 20 pieces of 1 minute bars on it. CL01-18.
Where could I send and what would you need?
Printing the last 10frames from the stacktrace:
2017-12-06 21:49:48:199 System.NullReferenceException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.TextFormatting.LineServicesCallbacks.S etChpFormat(TextRunProperties runProp, LsChp& lschp)
at MS.Internal.TextFormatting.LineServicesCallbacks.F etchRunRedefined(IntPtr pols, Int32 lscpFetch, Int32 fIsStyle, IntPtr pstyle, Char* pwchTextBuffer, Int32 cchTextBuffer, Int32& fIsBufferUsed, Char*& pwchText, Int32& cchText, Int32& fIsHidden, LsChp& lschp, IntPtr& lsplsrun)
--- End of inner exception stack trace ---
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.FormatLine(FullTextState fullText, Int32 cpFirst, Int32 lineLength, Int32 formatWidth, Int32 finiteFormatWidth, Int32 paragraphWidth, LineFlags lineFlags, FormattedTextSymbols collapsingSymbol)
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e..ctor(FormatSettings settings, Int32 cpFirst, Int32 lineLength, Int32 paragraphWidth, LineFlags lineFlags)
at MS.Internal.TextFormatting.TextFormatterImp.Format LineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
at MS.Internal.TextFormatting.TextFormatterImp.Format Line(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayoutGroupFactory.#6lc(ITe xtView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, TextRange #I, Double #hpi)
at #m3b.#b4b.#8lc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, TextRange #I, Double #hpi)
at #m3b.#b4b.#bmc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, Int32 #fd)
at #m3b.#c4b.#mmc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, Int32 #fd)
at #m3b.#c4b.#pmc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, Size #Gzf, TextPosition #d9b, Boolean #Hzf, Boolean #ipi)
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)
Comment