未处理的“System.IndexOutOfRangeException”类型的异常出现在 calculate.exe 中
laojx 2006-03-23 04:21:54 未处理的“System.IndexOutOfRangeException”类型的异常出现在 calculate.exe 中
其他信息: 索引超出了数组界限。
百思不得其解啊,望高人指教!
未处理的异常: System.IndexOutOfRangeException: 索引超出了数组界限。
at calculate.Form1.qrtt(Int32 n, Double[] a, Double[] u, Double[] v, Double eps, Int32 jt) in e:\c#\解方程\calculate\form1.cs:line 217
at calculate.Form1.button1_Click(Object sender, EventArgs e) in e:\c#\解方程\calculate\form1.cs:line 364
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Fo程序“[5508] calculate.exe”已退出,返回值为 0 (0x0)。
rms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at calculate.Form1.Main() in e:\c#\解方程\calculate\form1.cs:line 205