[Mono-list] GDI+ status: InvalidParameter

Stifu stifu at free.fr
Sun Feb 1 04:43:27 EST 2009


Hello!
French here too.

Just in case, make sure libgdiplus is installed...
Also, if you could upload your project, I could check if I can get it to
work.


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

-- 
View this message in context: http://www.nabble.com/GDI%2B-status%3A-InvalidParameter-tp21772704p21773172.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list