出现应用程序未处理的异常/n异常类型:AccessViolationException/n异常消息:尝试读取或写入受保护的内存。这通常指示其他内存已损坏 System.Drawing.SafeNativeMethods.Gdip.GdipFillRectangleI 1.有可能是加载这个DLL的问题 2.控件权限问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 google不到结果,相关问题http://www.developmentnow.com/g/20_2006_4_0_0_744613/AccessViolationException.htmhttp://stackoverflow.com/questions/4585909/vs2008-crashes-when-switched-to-design-mode-on-very-large-solution 1、我不清楚System.Drawing.SafeNativeMethods.Gdip.GdipFillRectangleI 加载的是哪个dll2、控制权限问题?不懂,如果是权限问题,那为什么这个错误不是一直出现,而是有时出现有时不出现。 应该是.net framework中的private函数。 如果是private函数,我直接应该无法访问的,编译的是就会报错,可是我却编译成功了,而且还运行了 我的程序在运行时也遇到这样的报错,估计是加载什么dll遇到问题了,但是还未解决,继续寻找问题中。 2013-05-08 11:46:08出现应用程序未处理的异常/n异常类型:AccessViolationException/n异常消息:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。/n异常位置: 在 System.Drawing.SafeNativeMethods.Gdip.GdipFillRectangleI(HandleRef graphics, HandleRef brush, Int32 x, Int32 y, Int32 width, Int32 height) 在 System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height) 在 System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect) 在 System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft) 在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset) 在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle) 在 System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent) 在 System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e) 在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) 在 System.Windows.Forms.Control.WmEraseBkgnd(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)/n又出现这个问题了,还是没有解决办法,求高人 gridview的SelectedIndexChanged Discuz NT 整合问题。。 裸体跪求! 一个计算器的问题 我要监控一个程序!然后模拟手工操作怎么写! 有点奇怪!急啊 本地机子上写的程序怎么在别人机子上运行啊?? Hashtable的健值关系 库存图书管理系统 局域网内发送信息 The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. C#获取无线网络信号强度
2、控制权限问题?不懂,如果是权限问题,那为什么这个错误不是一直出现,而是有时出现有时不出现。
应该是.net framework中的private函数。
出现应用程序未处理的异常/n异常类型:AccessViolationException/n异常消息:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。/n异常位置: 在 System.Drawing.SafeNativeMethods.Gdip.GdipFillRectangleI(HandleRef graphics, HandleRef brush, Int32 x, Int32 y, Int32 width, Int32 height)
在 System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
在 System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
在 System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft)
在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
在 System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
在 System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
在 System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)/n
又出现这个问题了,还是没有解决办法,求高人