[Mono-bugs] [Bug 654561] New: very simple windows forms program does not works with mono 2.8.1

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 18 04:16:36 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=654561#c0


           Summary: very simple windows forms program does not works with
                    mono 2.8.1
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matteo.tesser at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12 GTB7.1 ( .NET CLR 3.5.30729; .NET4.0C)

This simple program does not work on mono 2.8.1 when

//*****************
using System;
using System.Windows.Forms;

class myform:Form
{
 static void Main(string[] args)
 {
   Application.Run( new myform());
 }
}
//**************************



Reproducible: Always

Steps to Reproduce:
1.gmcs -r System.Windows.Forms.dll myform.cs
2.mono myform.exe

Actual Results:  
Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object
 at System.Drawing.Graphics.Dispose () [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:Dispose ()
 at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32
width, Int32 height) [0x00000] in <filename unknown>:0
 at System.Drawing.Bitmap..ctor (System.Drawing.Image original)
[0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor
(System.Drawing.Image)
 at System.Windows.Forms.Cursor.ToBitmap (Boolean xor, Boolean
transparent) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Cursor.CreateCursor (System.IO.Stream
stream) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Cursor..ctor (System.Type type,
System.String resource) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Cursors.get_SizeNWSE () [0x00000] in
<filename unknown>:0
 at System.Windows.Forms.SizeGrip..ctor (System.Windows.Forms.Control
CapturedControl) [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check)
System.Windows.Forms.SizeGrip:.ctor (System.Windows.Forms.Control)
 at System.Windows.Forms.ScrollableControl.CreateScrollbars ()
[0x00000] in <filename unknown>:0
 at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in
<filename unknown>:0
 at System.Windows.Forms.ContainerControl..ctor () [0x00000] in
<filename unknown>:0
 at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
 at prova..ctor () [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) prova:.ctor ()
 at prova.Main (System.String[] args) [0x00000] in <filename unknown>:0

Expected Results:  
your system displaying a form

it works when MONO_MWF_MAC_FORCE_X11 is set to 1.

-- 
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.


More information about the mono-bugs mailing list