[Mono-list] Problem calling Mono.Posix methods from embedded Mono.

Paolo Molaro lupus@ximian.com
Tue, 14 Dec 2004 19:13:02 +0100

On 12/13/04 Daniel James wrote:
> I'm having problems calling Mono.Posix methods when embedded in C code. 
> For example, if I use the test-invoke sample to invoke the following 
> I get the following error:
> Unhandled Exception: System.DllNotFoundException: libc
> in <0x00061> (wrapper managed-to-native) Mono.Posix.Syscall:chroot (string)
> in <0x0000f> test_posix:Main (string[])
> Running the exe file straight from mono works fine.

You need a bit more setup: the test samples are minimalistic.
Insert a call to mono_config_parse (NULL); and it should work.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better