Posted 13 years ago by László Mohácsi
Avatar
this happens all the time with the 4.0 final:

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at i.f(Int32 A_0)
at ActiproSoftware.SyntaxEditor.DisplayLineCollection.c(Int32 A_0, Int32 A_1)
at ActiproSoftware.SyntaxEditor.DisplayLine.get_HasContentDividerBefore()
at ActiproSoftware.SyntaxEditor.EditorView.a(PaintEventArgs A_0, Rectangle A_1, DocumentLine A_2, DisplayLine A_3, EditPositionRange A_4, Int32& A_5)
at ActiproSoftware.SyntaxEditor.EditorView.OnRender(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIElement.Render(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnRenderChildElements(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIControl.Render(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIControl.a(PaintEventArgs A_0)
at ActiproSoftware.WinUICore.UIControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.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)



I do *nothing* I scroll down in an empty document for example.

Comments (5)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Did it happen in the betas? I'm unable to duplicate it. Can you either send detailed instructions on how to duplicate it in our sample project or send over a project of your own that shows it?


Actipro Software Support

Posted 13 years ago by László Mohácsi
Avatar
No - just as I said it's the final. (v4.0.0232)
Project is trivial:

Form1.cs>
            private void Form1_Load(object sender, EventArgs e) {
myEditor1.Document.LoadFile(@"X:\foobar\buttons.as");
            myEditor1.Document.LoadLanguageFromXml(@"X:\foobar\ActiproSoftware.JScript.xml", 0);
            myEditor1.Document.Outlining.Mode = ActiproSoftware.SyntaxEditor.OutliningMode.Automatic;
        }
MyEditor.cs
public partial class MyEditor : SyntaxEditor {

        public MyEditor() {
            InitializeComponent();
        }
}
That's all. The previous beta (0231) was ok
as far as i remember.


[Modified at 10/05/2006 02:53 AM]
Posted 13 years ago by phruby
Avatar
I'm actually getting that same thing in .0231. It's like the line number is out of bounds.
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
László,

Could you email over the sample project you used to duplicate the problem, any related files like the language and code that is loaded, and the steps to take to make it occur? I'd like to debug this.

phruby and I were just working wondering if it has something to do with the caret position when a language is loaded. He worked around his issue by setting the caret to offset 0 when loading a language. However I'm not sure if his and your problems are the same. I'd still like to resolve the issue by debugging your scenario and providing a fix in the next maintenance release.


Actipro Software Support

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the sample. It ended up being a bug with VirtualSpaceAtDocumentEnd enabled. It's fixed for the next maintenance release. Please just turn that option off until the next maintenance release. We'll try to get it out shortly.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.