首页 新闻 会员 周边

公司自己开发的邮件系统 双击打开邮件时报如下错误

0
悬赏园豆:5 [待解决问题]

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.AxHost.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)

急!!! 目前小弟只有5分了 希望各位高手帮帮小弟!!! 非常感谢...

逸夫的主页 逸夫 | 初学一级 | 园豆:0
提问于:2011-01-24 18:54
< >
分享
所有回答(2)
0

内存错误,重启电脑即可

水晶001 | 园豆:250 (菜鸟二级) | 2011-01-26 11:05
0

有几种可能:

第一,内存物理错误,如果这个时候读取到物理的坏块,就会导致错误。

第二,错误的地址或者越界访问。

第三,内存泄露引起。(C#即使有GC,但是也有可能会泄露,在使用Unsafe标记的函数要格外小心)

归真 | 园豆:605 (小虾三级) | 2011-02-14 18:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册