On 09/05/2015 13:00, mono-list-requ...@lists.ximian.com wrote:
Thanks for your answer.
You probably right for the hellogtk.cs program but what about the Winforms
one ?
Here is the code of hellowinforms.cs:
using System;
using System.Windows.Forms;
public class HelloWorld : Form
{
static public void Main ()
{
Application.Run (new HelloWorld ());
}
public HelloWorld ()
{
Text = "Hello Mono World";
}
}
initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib
Hi,
Are you on Snow Leopard (OSX 10.6) by any chance ? I've noticed its gone from
the supported OS list
but the removal of support is not mentioned in the Release Notes.
When I tried to run my application which uses a bitmap on Snow Leopard I got
the same error...
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format)
[0x00000] in <filename unknown>:0
I then ran with MONO_LOG_LEVEL=debug and got
Mono: DllImport attempting to load:
'/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib'.
Mono: DllImport error loading library
'/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib':
'dlopen(/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib,
9): Symbol not found: __tlv_bootstrap
Referenced from:
/Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libpixman-1.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
It appears its been compiled to be compatible with 10.7 minimum which is where
__tlv_bootstrap appeared,
which funny as its still a 32 bit framework but doesn't support any 32 bit
version of OSX.
If you are not on Snow Leopard then I suggest running it with
MONO_LOG_LEVEL=debug and seeing what that throws out.
Dave
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list