c#写的窗口程序,运行几天都是正常的,但有时会弹出窗口提示System.IndexOutOfRangeException: Index was outside

shbaby008 2011-01-21 06:06:53
ee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ***.**.***(Int32 ch1, Int32 chtype, Int32 nstate)
at ***.**.***.timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 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.
...全文
263 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shbaby008 2011-01-25
  • 打赏
  • 举报
回复
与.net 版本有关系吗
开发是3.5
实际运行是2.0
wangsong145 2011-01-22
  • 打赏
  • 举报
回复
数组越界了,你检查下代码哪里有没有超出数据界限的
tourstar 2011-01-21
  • 打赏
  • 举报
回复
数组越界
wuyq11 2011-01-21
  • 打赏
  • 举报
回复
资源是否及时释放
数组越界
rabbitlzx 2011-01-21
  • 打赏
  • 举报
回复
检查下timer事件
  • 打赏
  • 举报
回复
集合类访问越界了
shbaby008 2011-01-21
  • 打赏
  • 举报
回复
点击 忽略,程序还是可能正常运行,没有被关闭

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧