#11 OptimizedDoubleBuffer style fails

closed
Stefan Lange
None
5
2010-12-08
2010-06-13
Ronald de Jong
No

Event the simplest XGraphics causes the application fail
when the OptimizedDoubleBuffer style is used.
See code snippet below:

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
SetStyle( ControlStyles.AllPaintingInWmPaint |ControlStyles.OptimizedDoubleBuffer |
ControlStyles.ResizeRedraw, true);
}

protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(Color.CornflowerBlue);

using (XGraphics g = XGraphics.FromGraphics(e.Graphics, this.ClientSize))
{
XRect rect = new XRect(10, 10, 250, 250);
g.DrawRectangle(XBrushes.SeaShell, rect);
}
}
}

Discussion

  • PDFsharp Team
    PDFsharp Team
    2010-07-14

    This problem is under investigation.

     
  • PDFsharp Team
    PDFsharp Team
    2010-11-24

    This problem is under investigation.

     
  • PDFsharp Team
    PDFsharp Team
    2010-11-24

    • status: open --> pending
     
  • PDFsharp Team
    PDFsharp Team
    2010-11-24

    • assigned_to: nobody --> stefan_lange
     
    • status: pending --> closed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).