Error when SyntaxEditor receives focus

SyntaxEditor for Windows Forms Forum

Posted 17 years ago by painetraine
I am getting the following error when the SyntaxEditor control receives focus. It doesn't happen that often and it usually happens only when the control receives focus after being hidden:

Top Level Exception
Type: System.ArgumentException
Message: The offset '0' added to the length '1' must be less than or
equal to the count of characters in the document.
Source: ActiproSoftware.SyntaxEditor
Stack Trace: at ActiproSoftware.SyntaxEditor.Document.?(Int32 , Int32 )
at ActiproSoftware.SyntaxEditor.Document.GetSubstring(Int32 offset,
Int32 length)
at ActiproSoftware.SyntaxEditor.EditorView.get_SelectedText()
at ?.?(EditorView )
at ?.OnMouseMove(UIComponentMouseEventArgs e)
at ActiproSoftware.WinUICore.UIObject.?(UIComponentMouseEventArgs )
t.RaiseMouseMoveEvent(UIComponentMouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Can you try and isolate conditions for when it occurs, preferrably in the sample project? Thanks!

Actipro Software Support

The latest build of this product (v2020.1 build 0403) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.