[Mono-osx] UnixProcess with Dumbarton

R. Tyler Ballance tyler at bleepconsulting.com
Tue Jan 2 06:23:38 EST 2007

On Jan 2, 2007, at 5:19 AM, R. Tyler Ballance wrote:

> 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).

Whoops, I realized that after I sent the patch, it included my change  
to the Xcode project so I could bundle Dumbarton within my  
application bundle, here's just the patch for DBMonoEnvironment.m


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/d29d00c1/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DBMonoEnvironment.m.patch
Type: application/octet-stream
Size: 472 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20070102/d29d00c1/attachment-0001.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20070102/d29d00c1/attachment-0003.html 

More information about the Mono-osx mailing list