EditControl Cursor Bug Report

Hi!

Just reporting what I suspect is a bug.

When using arrow keys to move the cursor in the EditControl control. 
Unhandled exception will be display with this message

"Line with a specified index cannot be found in stream.
Parameter name: iLine
Actual value was 2"

Reproduce Steps:
-Add EditControl to Form
-EditControl.Text = ""
-EditControl.HighlightCurrentLine = true
-Debug
-Select EditControl
-Press Right Arrow Key Until Exception is Thrown


----------Details----------
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Line with a specified index cannot be found in stream.
Parameter name: iLine
Actual value was 2.
   at Syncfusion.Windows.Forms.Edit.Implementation.Parser.LexemParser.GetLine(Int32 iLine)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.GetLine(Int32 iLineIndex)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.OnCursorManagerLineChanged(Object sender, ValueChangedEventArgs e)
   at Syncfusion.Windows.Forms.Edit.Implementation.CursorManager.RaiseLineChangedEvent(Int32 oldLine, Int32 newLine)
   at Syncfusion.Windows.Forms.Edit.Implementation.CursorManager.Syncfusion.Windows.Forms.Edit.Interfaces.ICursorVirtualCoordinates.set_Line(Int32 value)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.set_CurrentLine(Int32 value)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.MoveRight()
   at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyCommandImpl.Execute()
   at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyProcessor.KeyCommandListBinderImpl.ProcessKey(Keys key)
   at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyProcessor.ProcessKey(Keys key)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Syncfusion.Windows.Forms.Edit.ScrollControl.WndProc(Message& msg)
   at Syncfusion.Windows.Forms.Edit.IntelliScrollableControl.WndProc(Message& m)
   at Syncfusion.Windows.Forms.Edit.StreamEditControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3132.0 built by: NET472REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
SyntaxEditor_Config
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Matt/Downloads/SyntaxEditor_Config_Sample95737608/SyntaxEditor_Config/bin/Debug/SyntaxEditor_Config.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3151.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Syncfusion.Edit.Windows
    Assembly Version: 16.2460.0.50
    Win32 Version: 16.2460.0.50
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Syncfusion.Edit.Windows/v4.0_16.2460.0.50__3d67ed1f87d44c89/Syncfusion.Edit.Windows.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3160.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Syncfusion.Shared.Base
    Assembly Version: 16.2460.0.50
    Win32 Version: 16.2460.0.50
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Syncfusion.Shared.Base/v4.0_16.2460.0.50__3d67ed1f87d44c89/Syncfusion.Shared.Base.dll
----------------------------------------
Syncfusion.Tools.Windows
    Assembly Version: 16.2460.0.50
    Win32 Version: 16.2460.0.50
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Syncfusion.Tools.Windows/v4.0_16.2460.0.50__3d67ed1f87d44c89/Syncfusion.Tools.Windows.dll
----------------------------------------
System.Design
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


1 Reply

SK Senthil Kumaran Rajan Syncfusion Team August 31, 2018 11:43 AM UTC

Hi Matt,  
  
Thank you for contacting Syncfusion Support.   
  
We have confirmed the reported issue “Line with a specified index cannot be found in stream exception” in EditControl is a defect and the fix for the same will be included in our upcoming 2018 Volume 3 release, which is scheduled to be released on mid of September, 2018.   
  
Regards  
Senthil 


Loader.
Up arrow icon