Ho un'applicazione .NET 2.0 che funziona bene su XP e Vista, ma su Windows 7 RC (x64) si blocca con il seguente errore:Windows 7 TextureBrush..ctor) Errore (
Eccezione Informazioni
Tipo di eccezione: System.OutOfMemoryException Messaggio: Memoria insufficiente. dati: System.Collections.ListDictionaryInternal TargetSite: .ctor Void (System.Drawing.Image, System.Drawing.Drawing2D.WrapMode) HelpLink: NULL Fonte: System.Drawing
StackTrace Informazioni
a System.Drawing.TextureBrush..ctor (Immagine immagine, WrapMode wrapMode) a System.Windows.Forms.ControlPaint.DrawBackgroundImage (Grafica g, Immagine backgroundImmagine, Colore backColor, ImmagineLayout backgroundImageLayout, Rettangolo, Rettangolo clipRetto, Punto scrollOffset , RightToLeft rightToLeft) in System.Windows.Forms.Control.PaintBackground (PaintEventArgs e, Rettangolo rettangolo, Colore backColor, Point scrollOffset) in System.Windows.Forms.Control.PaintBackground (PaintEventArgs e, Rectangle rectangle) in System.Windows.Forms. Control.OnPaintBackground (PaintEventArgs pevent) a System.Windows.Forms.ScrollableControl.OnPaintBackground (PaintEventArgs e) a System.Windows.Forms.Control.PaintWithErrorHandling (PaintEventArgs e, strato di Int16, booleane disposeEventArgs) a System.Windows.Forms .Control.WmPaint (Messaggio & m) a System.Windows.Forms.Control.WndProc (Messaggio & m) a System.Windows.Forms.ScrollableControl.WndProc (Messaggio & m)
Qualche idea sul perché questo sta accadendo o su come potrei programmare intorno ad esso? Dipinge semplicemente una winform standard senza uno sfondo speciale.
UPDATE: Ho riscontrato che questo è solo un problema quando BackgroundImageLayout = ImageLayout.Tile, che è anche l'impostazione predefinita. Impostalo su Zoom o Centro e il problema scompare. Questo è abbastanza insoddisfacente, perché ho bisogno di tessere.
Funziona bene su XP e Vista ** 64-bit **? –
Sì, funziona bene su entrambe le versioni a 32 e 64 bit di XP e Vista. –
Grazie (è stato uno scatto al buio, ha avuto alcuni problemi di suono simili relativi a problemi cross-arch recentemente.) Scusa, per le idee. –