Unhandle exception in KeyPress

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Dong JIA
Avatar
Hi all,

The following is a unhandle exception report:
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.a(EditorView A_0, Keys A_1, Char A_2, Boolean A_3)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.OnKeyPress(KeyPressEventArgs e)

at Agilent.Vee.UIControls.DotNetFormulaBox.OnKeyPress(KeyPressEventArgs 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 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at Agilent.Vee.UIControls.DotNetFormulaBox.WndProc(Message& message)
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)

DotNetFormulaBox is a sub class of SyntaxEditor and its OnKeyPress call base.OnKeyPress(e) firstly;
When I am debugging, I find that KeyPressEventArgs e is a SPACE. And the exception is random. :(
Could you give me some advice?
Thanks in advance.
DeepNight

[Modified at 12/12/2006 11:58 PM]

Comments (4)

Posted 12 years ago by Dong JIA
Avatar
The Version is SyntaxEditor 3.1.0213, WinUICore 1.0.0083.
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the information. I believe I think I see what could be causing that scenario and have a fix implemented for the next maintenance release.


Actipro Software Support

Posted 12 years ago by Dong JIA
Avatar
My product will code freeze on next monday. I think I must catch that exception by myself. :)
Thanks for your quick response.
DeepNight
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you would like we can send you a preview of the next maintenance release. Just send us an e-mail requesting it. You said you were on v3.1 and I don't expect any more changes for that. Do you use any of our other products because there is a Shared/WinUICore update with the next releases?


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.