程序运行过程中发生错误,错误信息如下:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
发生错误的程序集为:System.Drawing
发生错误的具体位置为:
   at System.Drawing.SafeNativeMethods.Gdip.GdipFillRectangleI(HandleRef graphics, HandleRef brush, Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
   at System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
   at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
   at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.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)

解决方案 »

  1.   

    目测很少人用C#搞芯片开发吧,不过我家的技嘉主板软件是.NET写的
      

  2.   

    我也遇到一样的问题,双开软件,经过我研究是amd  ati 显卡和.net 2.0  不兼容的问题,我的解决方法是在显卡 设置->疑难解答->硬件加速 由全改成 第三格 就可以了.
      

  3.   

    将显卡驱动改成Microsoft Basic Display Adapter Driver看看。
      

  4.   

    解决方案、经过我两个昼夜研究研究是amd  ati 显卡和.net 2.0  不兼容的问题,我的解决方法有三种是:1、在显卡 设置->​高级->疑难解答->硬件加速 由全改成 第三格(禁用所有DirextDraw和Direct3D加速程序) 就可以了。2、或者禁用显卡驱动 3、换显卡。 20140823​