I am getting exceptions often into NinjaScript Editor which causes NT is shut down.
I attach the related portion of the trace.
Thanks.
2016-01-21 17:06:32:934 *************** unhandled exception trapped *************** 2016-01-21 17:06:32:935 Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index 2016-01-21 17:06:32:940 System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at MS.Internal.TextFormatting.TextMetrics.FullTextLine.DrawTextLine(DrawingContext drawingContext, Point origin, MatrixTransform antiInversion) at MS.Internal.TextFormatting.TextMetrics.FullTextLine.Draw(DrawingContext drawingContext, Point origin, InvertAxes inversion) at #m3b.#l3b.#p3b.#2hc(ITextView #N5b, Rect #adc) at #m3b.#l3b.#2hc(ITextView #N5b, Rect #adc) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.RenderLines() at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.PerformViewLineLayout() at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnViewLineLayoutManagerLayoutRequired(Object sender, EventArgs e) at #m3b.#c4b.#Ekc(ITextSnapshot #I7b, ITextChange #g7b) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.TextView.#Ekc(ITextSnapshot #I7b, ITextChange #g7b) at ActiproSoftware.Windows.Controls.SyntaxEditor.Implementation.EditorViewManager.#ZE.#pqc(Object #axf) at #O2b.#N2b.#Kec[#gi](DependencyObject #QOd, Action`1 #2vf, #gi #3vf) at ActiproSoftware.Windows.Controls.SyntaxEditor.Implementation.EditorViewManager.NotifyDocumentTextChanged(TextSnapshotChangedEventArgs #yhb) at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(Object sender, TextSnapshotChangedEventArgs e) at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.<OnDocumentPropertyChanged>b__16(SyntaxEditor instance, Object source, TextSnapshotChangedEventArgs eventArgs) at ActiproSoftware.Text.Utility.WeakEventListener`2.OnEvent(Object source, TEventArgs eventArgs) at ActiproSoftware.Text.Utility.WeakEventListener`2.OnEventLowPriority(Object source, TEventArgs eventArgs) at ActiproSoftware.Text.Implementation.TextDocumentBase.OnTextChanged(TextSnapshotChangedEventArgs e) at ActiproSoftware.Text.Implementation.CodeDocument.OnTextChanged(TextSnapshotChangedEventArgs e) at ActiproSoftware.Text.Implementation.TextDocumentBase.#O7c(#g7b #g7b) at #Q2b.#g7b.Apply() at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.BasicReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options) at ActiproSoftware.Windows.Controls.SyntaxEditor.EditActions.TypingAction.Execute(IEditorView view) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ExecuteEditAction(IEditAction action) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ProcessOnTextInput(TextCompositionEventArgs e) at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnTextInput(TextCompositionEventArgs e) at System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e) at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition) at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e) at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition) at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e) at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Comment