Hello,
I am working on the issue. I will post details in the tracker.
Regards, Laurent Etiemble.
2008/8/13 Jérôme Gagnon-Voyer <[EMAIL PROTECTED]>:
> I'm trying to call this function inside awakefromnib
> Mono.Unix.Native.Stat s = new Mono.Unix.Native.Stat();
> Mono.Unix.Native.Syscall.stat("/Volumes/Test/RebootScript.sh", out s);
> I get this error, dllimport error.
> Is that related to that issue?
> http://tracker.monobjc.net/view.php?id=85
> Thanks
>
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]:
> Unhandled Exception: System.Reflection.TargetInvocationException: Exception
> has been thrown by the target of an invocation. --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for Mono.Unix.Native.Syscall ---> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/1.9.1/lib/libMonoPosixHelper.dylib
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Mono.Unix.Native.Syscall..cctor () [0x00000] --- End of inner exception
> stack trace ---
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Shufl.HelloController.AwakeFromNib () [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Dynamic.Proxies.Monobjc.Shufl.HelloController.AwakeFromNib (IntPtr
> receiver, IntPtr selector) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> (wrapper native-to-managed)
> Monobjc.Dynamic.Proxies.Monobjc.Shufl.HelloController:AwakeFromNib
> (intptr,intptr)
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> (wrapper managed-to-native) Monobjc.Dynamic.Messaging.OBJC_MSGSEND
> [System_Boolean](Monobjc_Cocoa_NSString,Monobjc_Cocoa_NSApplication):__native_call
> (intptr,intptr,intptr,intptr)
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Dynamic.Messaging.OBJC_MSGSEND
> [System_Boolean](Monobjc_Cocoa_NSString,Monobjc_Cocoa_NSApplication).objc_msgSend
> (IntPtr receiver, IntPtr selector, Monobjc.Cocoa.NSString ,
> Monobjc.Cocoa.NSApplication ) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
> (object,object[])
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00000] --- End of inner
> exception stack trace ---
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
> parameters) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Generation.MessagingGenerator.SendMessage[Boolean] (System.String
> message, IntPtr receiver, IntPtr selector, System.Object[] parameters)
> [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.ObjectiveCRuntime.SendMessage[Boolean] (IManagedWrapper receiver,
> System.String selector, System.Object[] parameters) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Cocoa.NSBundle.LoadNibNamedOwner (Monobjc.Cocoa.NSString aNibName,
> Monobjc.Id owner) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Cocoa.NSApplication.LoadNib (System.String filename) [0x00000]
> Aug 12 19:46:47 Indian [0x0-0x12012].net.monobjc.samples.Shufl[119]: at
> Monobjc.Shufl.Program.Main (System.String[] args) [0x00000]
> Aug 12 19:46:47 Indian com.apple.launchd[72]
> ([0x0-0x12012].net.monobjc.samples.Shufl[119]): Exited with exit code: 1
> Aug 12 19:48:00 Indian com.apple.launchd[72] (0x109820.Locum[125]): Exited:
> Terminated
>
> Jérôme
>
> [EMAIL PROTECTED]
>
>
>
>