https://bugzilla.novell.com/show_bug.cgi?id=355141


           Summary: BadDrawable X Error on Graphics.FromHwnd() call
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=191230)
 --> (https://bugzilla.novell.com/attachment.cgi?id=191230)
Test program for Graphics.FromHwnd() error

The following code (see also attached test case):

Graphics.FromHwnd(IntPtr.Zero);

fails with an X error:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0x0
  Serial number of failed request:  8
  Current serial number in output stream:  8

on Mono but it is supposed to work on Windows.

I found this problem while trying to compile the PDFSharp library
(http://www.pdfsharp.com/). A tipical program using the library will hit this
problem calling XGraphics.FromPdfPage() that will execute the quoted code
around line 132 in file PdfSharp/PdfSharp.Drawing/XGraphics.cs.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to