I have a .NET 2.0 application that works fine on XP and Vista, but on Windows 7 RC (x64) it crashes with the following error:
Exclusion Information
Exception Type: System.OutOfMemoryException Message: Out of memory. Data: System.Collections.ListDictionaryInternal TargetSite: Void.ctor (System.Drawing.Image, System.Drawing.Drawing2D.WrapMode) HelpLink: NULL Source: System.Drawing
StackTrace Information
in System.Drawing.TextureBrush..ctor (Image Image, WrapMode wrapMode) in System.Windows.Forms.ControlPaint.DrawBackgroundImage (Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft Right ) in System.Windows.Forms.Control.PaintBackground (PaintEventArgs e, Rectangle Rectangle, Color backColor, Point scrollOffset) in System.Windows.Forms.Control.PaintBackground (PaintEventArgs e, rectangle rectangle) in System.Windows.Forms.Control. OnPaintBackground (PaintEventArgs pevent) in System.Windows.Forms.ScrollableControl.OnPaintBackground (PaintEventArgs e) in System.Windows.Forms.Control.PaintWithErrorHandling (PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) in System.Windows. (Message & m) in System.Windows.Forms.Control.WndProc (Message & m) in System.Windows.Forms.ScrollableControl.WndProc (Message & m)
, , , ? winform .
UPDATE:
, , BackgroundImageLayout = ImageLayout.Tile, . Zoom Center, . , , .