用winform编好的程序,在win7系统下运行时,会提示如下错误:

System.OutOfMemoryException:内存不足。

在System.Drawing.TextureBrush..ctor(Image image,WrapMode wrapmode)

在System.Windows.Forms.ControlPaint.DrawBackgrountImage(Graphics g,Image backgroundImage,Color backColor,.......

在XP和server03上都运行正常,但在Win7下运行就会出现上述错误,某些窗体上的图片打不开。

把那些图片用编辑器打开然后重新保存下,错误就会解决,但不知道什么原因。。。

posted on 2010-06-24 15:03  youqianer  阅读(1185)  评论(1编辑  收藏  举报