[Mono-osx] System.DllNotFoundException: libc.dylib

Rudloff rudloff at strasweb.fr
Sun Feb 27 18:41:09 EST 2011


Hello,
I am porting a Windows program to OSX with MonoMac.
My app works just fine when running it from MonoDevelop but when I run it
from the Finder, it crashes with the following error :

28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	Unhandled
Exception: System.TypeInitializationException: An exception was thrown by
the type initializer for System.Windows.Forms.XplatUI --->
System.DllNotFoundException: libc.dylib
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	  at
(wrapper managed-to-native) System.Windows.Forms.XplatUI:uname (intptr)
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	  at
System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	  --- End
of inner exception stack trace ---
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
System.Windows.Forms.Cursor.Show () <0x0000f>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
ManicDigger.CrashReporter.Crash (System.Exception) <0x0004c>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
ManicDigger.CrashReporter.Start (ManicDigger.CrashReporter/Main,string[])
<0x00041>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
ManicDiggerMac.MainWindowController.serverConnect (MonoMac.AppKit.NSButton)
<0x00176>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at (wrapper
dynamic-method) object.[ManicDiggerMac.MainWindowController.Void
serverConnect(MonoMac.AppKit.NSButton)]
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSButton)
<0x00030>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at (wrapper
native-to-managed) object.[ManicDiggerMac.MainWindowController.Void
serverConnect(MonoMac.AppKit.NSButton)]
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSButton)
<0x000df>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at (wrapper
managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
MonoMac.AppKit.NSApplication.Main (string[]) <0x00015>
28/02/11 00:31:27	[0x0-0x102102].fr.strasweb.rudloff.manic[3424]	at
ManicDiggerMac.Program.Main (string[]) <0x00015>
28/02/11 00:31:27	com.apple.launchd.peruser.501[112]
([0x0-0x102102].fr.strasweb.rudloff.manic[3424]) Exited with exit code: 1

I really don't know why it can't find it. I've tried to add a dllmap but it
did not change anything.

Regards,

-- 
View this message in context: http://mono.1490590.n4.nabble.com/System-DllNotFoundException-libc-dylib-tp3327299p3327299.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list