Forums: 公開討議 (Thread #36885)

依然として「インデックスが配列の境界外です。」となります。 (2015-06-19 22:06 by beginner #76384)

こんにちは。わたしもwindows用エディタを作ってみようとazukiを利用しております。
ありがとうございます。
そんな中で異常終了してしまう場合があるので報告しておきます。

azukiエディタ上にテキストを読み込むとエラーで終了します。
textchangedではない場所で起きているようで、Program.csにエラーが届きます。エラーメッセージは、
「インデックスが配列の境界外です。」
です。
開発は、windows7 sp1 32bit + vs 2010 express です。
Azuki.dllは、1.7.12を使用しました。
catchできたスタックトレースは下記のようになります。

場所 Sgry.Azuki.SplitArray`1.GetAt(Int32 index)
場所 Sgry.Azuki.SplitArray`1.get_Item(Int32 index)
場所 Sgry.Azuki.Document.get_Item(Int32 index)
場所 Sgry.Azuki.View.NextPaintToken(Document doc, Int32 index, Int32 nextLineHead, CharClass& out_klass, Boolean& out_inSelection)
場所 Sgry.Azuki.PropWrapView.DrawLine(IGraphics g, Int32 lineIndex, Point pos, Rectangle clipRect)
場所 Sgry.Azuki.PropWrapView.Paint(IGraphics g, Rectangle clipRect)
場所 Sgry.Azuki.UiImpl.HandlePaint(Rectangle clipRect)
場所 Sgry.Azuki.WinForms.AzukiControl.CustomWndProc(IntPtr window, UInt32 message, IntPtr wParam, IntPtr lParam)
場所 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
場所 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
場所 System.Windows.Forms.Application.Run(Form mainForm)
場所 Form.Program.Main() 場所 Program.cs:行 17

Reply to #76384×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login