https://bugzilla.novell.com/show_bug.cgi?id=649398
https://bugzilla.novell.com/show_bug.cgi?id=649398#c0 Summary: Ported a Windows.Forms application to Mono. Compile fine. Huge number of runtime errors Classification: Mono Product: Mono: Runtime Version: 2.8.x Platform: PC OS/Version: Mac System 7 Status: NEW Severity: Major Priority: P5 - None Component: generics AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E) My System.Windows.Forms projects were developed in Visual Studio. I am trying to port it to Mono. Compilations were fine. But running it is a disaster. I got a huge number of exceptions. My question is that is it because you do not support System.Windows.Forms namespace and want developers to use GTK# instead? XML Serialization is also not working. Reproducible: Always Steps to Reproduce: 1. Port Windows.Forms application created in Visual Studio to Mono by compiling the project using MonoDevelop 2. Run the compiled program using Mono.Net 2.8 runtime 3. Actual Results: Lots of exceptions. For example: System.InvalidOperationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 The operation is invalid [GDI+ status: Win32Error] StackTrace: at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00229] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\System.Drawing\System.Drawing\gdipFunctions.cs:255 at System.Drawing.Graphics.DrawImage (System.Drawing.Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes imageAttr) [0x00066] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\System.Drawing\System.Drawing\Graphics.cs:903 at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:DrawImage (System.Drawing.Image,System.Drawing.Rectangle,int,int,int,int,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes) at System.Windows.Forms.ImageList+ImageCollection.CreateImage (System.Drawing.Image value, Color transparentColor) [0x00050] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ImageList.cs:583 at System.Windows.Forms.ImageList+ImageCollection.AddItemInternal (System.Windows.Forms.ImageListItem item) [0x00099] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ImageList.cs:493 at System.Windows.Forms.ImageList+ImageCollection.CreateHandle () [0x00038] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ImageList.cs:562 at System.Windows.Forms.ImageList+ImageCollection.GetImage (Int32 index) [0x0001e] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ImageList.cs:677 at System.Windows.Forms.ImageList.Draw (System.Drawing.Graphics g, Int32 x, Int32 y, Int32 width, Int32 height, Int32 index) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ImageList.cs:1133 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ImageList:Draw (System.Drawing.Graphics,int,int,int,int,int) at System.Windows.Forms.TreeView.DrawNodeImage (System.Windows.Forms.TreeNode node, System.Drawing.Graphics dc, Rectangle clip, Int32 x, Int32 y) [0x0005b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:1609 at System.Windows.Forms.TreeView.DrawTreeNode (System.Windows.Forms.TreeNode node, System.Drawing.Graphics dc, Rectangle clip) [0x0016b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:1796 at System.Windows.Forms.TreeView.Draw (Rectangle clip, System.Drawing.Graphics dc) [0x000ac] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:1518 at System.Windows.Forms.TreeView.OnPaintInternal (System.Windows.Forms.PaintEventArgs pe) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:1485 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00078] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:5549 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:5309 at System.Windows.Forms.TreeView.WndProc (System.Windows.Forms.Message& m) [0x00069] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:1198 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:234 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:215 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00085] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8\mcs\class\Managed.Windows.Forms\System.Windows.Forms\NativeWindow.cs:242 Expected Results: Runs fine with a few exceptions. -- 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
