[Mono-osx] System.DllNotFoundException: .../libgdiplus.dylib
Adhamh Findlay
monoosx@adhamh.com
Sun, 17 Apr 2005 10:50:52 -0700
you can't use mono to lauch this. If you have a .app then you have used
macpack so you you need to launch that.
XXXX.app/Contents/Resources/XXXX
The exeception that reports is the one that is needed.
Adhamh
Andreas Stein wrote:
> 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:
>
> 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.GdiplusStartupOutput&)
>
> 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?
>