[Mono-list] GDI+ status: InvalidParameter

Sebastien Pouliot sebastien.pouliot at gmail.com
Mon Feb 23 17:06:42 EST 2009


On Sun, 2009-02-01 at 00:28 -0800, sonatine wrote:
> hello
> 
> I a newbie and a french ( 2 firsts problems )...
> I 'm on Linux (Ubuntu) for 2 weeks now and i want to use some C# software I
> develop my-self no windows.
> MoMa said it's all ok, under monodevelop the build result is  :
> "
> Compilation de la solution CalculPoint
> 
> Compilation du projet: CalculPoint (Debug|Any CPU)
> Exécution de la compilation principale...
> Compilation Terminée -- 0 Erreur, 0 Avertissement
> 
> ---------------------- Fini ----------------------
> 
> Compilation réussie.
> System.Deployment est introuvable ou est invalide."
> 
> So the build is OK but System.Deployment can't be found or is invalid.
> 
> and when I want to execute my solution :
> 
> I have this message  :
> Unhandled Exception: System.ArgumentException: A null reference or invalid
> value was found [GDI+ status: InvalidParameter]
>   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:219

This looks like an invalid icon (file or format). Try removing your icon
from the form to see if it works. 

If it does then please attach the icon to a bug report[1] so that we can
check if this was fixed after Mono 1.9.1 (which is already quite old).
If it still does not work then post back on the list what error you
getting (without the icon).

[1] http://bugzilla.novell.com


>   at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x000be]
> in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:298
>   at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean
> keepAlive) [0x00011] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Image.cs:162
>   at System.Drawing.Icon.GetInternalBitmap () [0x00036] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:552
>   at System.Drawing.Icon.ToBitmap () [0x0001b] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/System.Drawing/System.Drawing/Icon.cs:574
>   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) [0x00021] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1168
>   at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle,
> System.Drawing.Icon icon) [0x0000d] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5138
>   at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle,
> System.Drawing.Icon icon) [0x00000] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:994
>   at System.Windows.Forms.Form.CreateHandle () [0x0007f] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1946
>   at System.Windows.Forms.Control.CreateControl () [0x00044] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3711
>   at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e]
> in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4923
>   at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2404
>   at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3372
>   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) [0x00059] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:736
>   at System.Windows.Forms.Application.Run
> (System.Windows.Forms.ApplicationContext context) [0x00014] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:635
>   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
> mainForm) [0x00000] in
> /build/buildd/mono-1.9.1+dfsg/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623
>   at CalculPoint.Program.Main () [0x0000b] in
> /home/dimitri/Bureau/Calcul/Calcul/CalculPoint/CalculPoint/Program.cs:17 
> 
> Can someone help me ?
> 
> Please ........
> 
> Someone tell me to uninstall and reinstall Mono ( but i did a bad thing and
> i had to reinstall ubuntu instead )
> 
> Thank you
> 
> Dimitri, frog newbie



More information about the Mono-list mailing list