程序崩溃后,能不能根据提示信息找到问题位置?

seehack 2013-06-07 09:41:20
因为问题不是随时都有,只有特定情况下才会出去,这就让人郁闷,不知问题出在那里,不好修复,能从这些提示信息中找到位置么?


问题签名:
问题事件名称: CLR20r3
问题签名 01: notepad.exe
问题签名 02: 6.1.7600.36
问题签名 03: 51b146aa
问题签名 04: Microsoft.VisualBasic
问题签名 05: 8.0.0.0
问题签名 06: 4ca2d138
问题签名 07: 345
问题签名 08: 4f
问题签名 09: System.InvalidCastException

...全文
223 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
c#的一般从崩溃信息可以大概推导出: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at _金刚般若_字符分类提取.Form1.加载树图标集() at _金刚般若_字符分类提取.Form1.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.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)就是加载图标时出现问题了 http://bbs.csdn.net/topics/390250897
红衣老大 2013-06-09
  • 打赏
  • 举报
回复
设置很多 try 在出错部分 写日志 内容可以包含 类名 函数名 等信息 不过你要添加很多 相当于每个函数一个 会很麻烦 不知道有没有更好的办法
EnForGrass 2013-06-09
  • 打赏
  • 举报
回复
记录异常日志
a3212b12 2013-06-09
  • 打赏
  • 举报
回复
ex.StackTrace
seehack 2013-06-07
  • 打赏
  • 举报
回复
知道,就是想知道是那个位置
王子文龙 2013-06-07
  • 打赏
  • 举报
回复
类型转换失败

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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