Note that there are some explanatory texts on larger screens.

plurals
  1. PO.NET graphics problem with GroupBoxes and NumericUpDowns
    primarykey
    data
    text
    <p>We're having some kind of graphics problem which seem to be related to the .NET runtime. Once in a while, the borders of all GroupBoxes and the arrows of all NumericUpDowns in our application dissappears. It seems like they stop repainting for some reason, because the NumericUpDowns sometimes have graphics garbage where the arrows should be.</p> <p>We suspect that the error occurs after restarting the application several times. Once the problem is present, restarting the application doesn't help. But closing all .NET processes and restarting the application makes the problem disappear, this points toward a problem in the .NET runtime.</p> <p>Our application is a WinForms app developed using VS 2008 SP1 and targets .NET 3.5. It runs on Windows XP SP3 in classic mode (client company policy).</p> <p>I've searched for others having similar problems, but most hits involve custom paint events for GroupBoxes. Our controls are plain standard - no paint events are used at all.</p> <p>EDIT: How can I deliberately exhaust the desktop heap to reproduce the problem? I've been playing with Task Manager and GdiUsage while creating pens, brushes and fonts like crazy. Not calling dispose of course, but also storing them in a list to avoid garbage collection. Still, after creating 100 000 pens with random colors I just have a few objects according to the monitor tools.</p> <pre><code>List&lt;Pen&gt; pens = new List&lt;Pen&gt;(); Random rnd = new Random(); for(int i = 0; i &lt; 100000; i++) pens.Add(new Pen(Color.FromArgb(rnd.Next()))); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload