[Mono-osx] UnixProcess with Dumbarton

R. Tyler Ballance tyler at bleepconsulting.com
Tue Jan 2 06:19:47 EST 2007


On Jan 2, 2007, at 4:17 AM, Andreas Färber wrote:

>
> Am 02.01.2007 um 09:30 schrieb R. Tyler Ballance:
>
>> I'm somewhat curious as to why this throws the exception, but it's  
>> not a major issue, just curious that p/invokes into libc would  
>> fail like this.
>
> Are you calling mono_config_parse as part of your initialization? I  
> had System.IO.FileSystemWatcher failing at libc p/invokes without  
> that. libc needs to be mapped to libSystem.

Looks like that did the trick, this seems like something that should  
be done "automatically" i.e. in the DBMonoEnvironment initialization.  
I've attached a patch that I've tested with UnixProcess' libc  
syscalls from my Dumbarton project (admittedly, it is a bit weird to  
be calling from Cocoa->C#->C :P).


Cheers


R. Tyler Ballance: Custom Mac and Linux Development at bleep. consulting
contact: tyler at bleepconsulting.com | jabber: tyler at jabber.geekisp.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20070102/f04d9e8f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DBMonoEnvironment.m.patch
Type: application/octet-stream
Size: 968 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20070102/f04d9e8f/attachment.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20070102/f04d9e8f/attachment-0001.html 


More information about the Mono-osx mailing list