Testing on Mono

Jan 16, 2012 at 10:07 AM

Hi,

I run NMG on Linux using Mono. It runs fine with a small issue of file path mappings. To investigate issue further I  run the code from svn in debug mode than I got an exception in GDIplus and application crashed.

A null reference or invalid value was found [GDI+ status: InvalidParameter]

here is stack trace

System.Drawing.GDIPlus.CheckStatus (status=System.Drawing.Status.InvalidParameter) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:220System.Drawing.Image.CreateFromHandle (handle=0x0) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/System.Drawing/System.Drawing/Image.cs:177System.Drawing.Image.LoadFromStream (stream={System.IO.MemoryStream}, keepAlive=false) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/System.Drawing/System.Drawing/Image.cs:164System.Drawing.Icon.GetInternalBitmap () in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/System.Drawing/System.Drawing/Icon.cs:559System.Drawing.Icon.ToBitmap () in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/System.Drawing/System.Drawing/Icon.cs:581System.Windows.Forms.XplatUIX11.SetIcon (hwnd={Hwnd, Mapped:True ClientWindow:0x9800010, WholeWindow:0x980000F, Zombie=False, Parent:[<null>]}, icon={<Icon>}) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1212System.Windows.Forms.XplatUIX11.SetIcon (handle=0x9800010, icon={<Icon>}) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5673System.Windows.Forms.XplatUI.SetIcon (handle=0x9800010, icon={<Icon>}) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:983System.Windows.Forms.Form.CreateHandle () in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2025System.Windows.Forms.Control.CreateControl () in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3528System.Windows.Forms.Control.SetVisibleCore (value=true) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4769System.Windows.Forms.Form.SetVisibleCore (value=true) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2478System.Windows.Forms.Control.set_Visible (value=true) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3199System.Windows.Forms.Application.RunLoop (Modal=false, context={System.Windows.Forms.ApplicationContext}) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:823System.Windows.Forms.Application.Run (context={System.Windows.Forms.ApplicationContext}) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:724System.Windows.Forms.Application.Run (mainForm=) in /home/abuild/rpmbuild/BUILD/mono-2.10.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:707NHibernateMappingGenerator.Program.Main () in /home/sharique/Projects/fossProjects/monodevelop/nmg/NMG.App/Program.cs:13