[Mono-osx] System.DllNotFoundException: .../libgdiplus.dylib

Andreas Stein andi.stein@gmx.net
Sun, 17 Apr 2005 12:13:10 +0200


--Apple-Mail-1-134120304
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

I think I have the same problem.

I try to open my .app with double click but it closes immediately. Then  
I try "mono XXXX.exe" and get this:

Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15  
5:56:12]

Unhandled Exception: System.TypeInitializationException: An exception  
was thrown by the type initializer for System.Drawing.GDIPlus --->  
System.DllNotFoundException:  
/Library/Frameworks/Mono.framework/Versions/1.1.6/lib/libgdiplus.dylib
in <0x000d8> (wrapper managed-to-native)  
System.Drawing.GDIPlus:GdiplusStartup  
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartu 
pOutput&)
in <0x0011c> System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) System.Windows.Forms.XplatUI:get_DefaultClassName ()
in <0x00078> System.Windows.Forms.Form:get_CreateParams ()
in <0x00074> System.Windows.Forms.Form:get_CreateParams ()
in <0x002c8> System.Windows.Forms.Control:.ctor ()
in <0x00028> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00018> System.Windows.Forms.ContainerControl:.ctor ()
in <0x0001c> System.Windows.Forms.Form:.ctor ()
in <0x00024> BARIPro.FrmMain:.ctor ()
in <0x00048> (wrapper remoting-invoke-with-check) BARIPro.FrmMain:.ctor  
()
in <0x0002c> BARIPro.FrmMain:Main ()

Am 16.04.2005 um 11:01 schrieb Sergey Shandar:

>  I tried to compile and execute few times a simple GUI example with  
> the MessageBox, but still have the error:
>
>  Unhandled Exception: System.TypeInitializationException: An exception  
> was thrown by the type initializer for MessageBoxForm --->  
> System.Reflection.TargetInvocationException: Exception has been thrown  
> by the target of an invocation. --->  
> System.TypeInitializationException: An exception was thrown by the  
> type initializer for System.Drawing.GDIPlus --->  
> System.DllNotFoundException:  
> /Library/Frameworks/Mono.framework/Versions/Current/lib/ 
> libgdiplus.dylib
>  in <0x000d8> (wrapper managed-to-native)  
> System.Drawing.GDIPlus:GdiplusStartup  
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStart 
> upOutput&)
>  in <0x0011c> System.Drawing.GDIPlus:.cctor ()
>
>  I checked the file  
> /Library/Frameworks/Mono.framework/Versions/Current/lib/ 
> libgdiplus.dylib. It exsists in this folder, 100%. What can I do to  
> fix it? 
--Apple-Mail-1-134120304
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

I think I have the same problem. 


I try to open my .app with double click but it closes immediately.
Then I try "mono XXXX.exe" and get this:


Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
5:56:12]


Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Drawing.GDIPlus --->
System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/1.1.6/lib/libgdiplus.dylib

in <<0x000d8> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)

in <<0x0011c> System.Drawing.GDIPlus:.cctor ()

--- End of inner exception stack trace ---


in (unmanaged) System.Windows.Forms.XplatUI:get_DefaultClassName ()

in <<0x00078> System.Windows.Forms.Form:get_CreateParams ()

in <<0x00074> System.Windows.Forms.Form:get_CreateParams ()

in <<0x002c8> System.Windows.Forms.Control:.ctor ()

in <<0x00028> System.Windows.Forms.ScrollableControl:.ctor ()

in <<0x00018> System.Windows.Forms.ContainerControl:.ctor ()

in <<0x0001c> System.Windows.Forms.Form:.ctor ()

in <<0x00024> BARIPro.FrmMain:.ctor ()

in <<0x00048> (wrapper remoting-invoke-with-check)
BARIPro.FrmMain:.ctor ()

in <<0x0002c> BARIPro.FrmMain:Main ()


Am 16.04.2005 um 11:01 schrieb Sergey Shandar:


<excerpt> I tried to compile and execute few times a simple GUI
example with the MessageBox, but still have the error:


 Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for MessageBoxForm --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.GDIPlus --->
<bold>System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib</bold>

 in <<0x000d8> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)

 in <<0x0011c> System.Drawing.GDIPlus:.cctor ()


 I checked the file
<bold>/Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib.</bold>
It exsists in this folder, 100%. What can I do to fix it? </excerpt>
--Apple-Mail-1-134120304--