[Mono-list] Building of Application Developed in VirtualStudio 2008

Stifu stifu at free.fr
Mon Jul 20 17:43:11 EDT 2009


It seems Mono considers the "status" parameter in the CheckStatus method has
a wrong value ("null or invalid"), while .NET accepts this value.
You could debug it to check the content of the "status" variable passed to
this method, and then file a bug report with a reduced test case.


PACi wrote:
> 
> Hello,
> 
> i am trying to build application, which was originally developed in Visual
> Studio. Now i opened in MoonDeveloped and tried to compile.
> 
> It compiles without any problem, but when i try tu run, it makes such a
> output:
> 
> Unhandled Exception: System.ArgumentException: A null reference or invalid
> value was found [GDI+ status: InvalidParameter]
>   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] 
>   at System.Drawing.Image.InitFromStream (System.IO.Stream stream)
> [0x00000] 
>   at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean
> keepAlive) [0x00000] 
>   at System.Drawing.Icon.GetInternalBitmap () [0x00000] 
>   at System.Drawing.Icon.ToBitmap () [0x00000] 
>   at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
>   at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd
> hwnd, System.Drawing.Icon icon) [0x00000] 
>   at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle,
> System.Drawing.Icon icon) [0x00000] 
>   at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle,
> System.Drawing.Icon icon) [0x00000] 
>   at System.Windows.Forms.Form.CreateHandle () [0x00000] 
>   at System.Windows.Forms.Control.CreateControl () [0x00000] 
>   at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] 
>   at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] 
>   at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] 
>   at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control:set_Visible (bool)
>   at System.Windows.Forms.Application.RunLoop (Boolean Modal,
> System.Windows.Forms.ApplicationContext context) [0x00000] 
>   at System.Windows.Forms.Application.Run
> (System.Windows.Forms.ApplicationContext context) [0x00000] 
>   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
> mainForm) [0x00000] 
>   at MountControl.Program.Main (System.String[] args) [0x00000] 
> 
> And i have no idea, where is problem. I am quite new to programming. Any
> help where to focus welcomed.
> 
> Jan
> 

-- 
View this message in context: http://www.nabble.com/Building-of-Application-Developed-in-VirtualStudio-2008-tp24576448p24578116.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list