On Wed, 2008-11-05 at 22:13 +0000, James Mansion wrote:
> Jonathan Pryor wrote:
> > That still wouldn't work, as *before* Main() is invoked there are
> > already multiple threads running.  You might not have the unknown lock
> > state issue, but you will have the runtime assuming that threads exist
> > which won't exist in the child process.  Oops.
> >   
> Isn't this an opportunity for 'embedding mono' with an explicit
> dynamic load of the mono runtime, so the main that runs is a C program
> that detaches first and sorts itself out and then loads up and
> initialises the mono runtime?

Yes, though this would be outside of Mono.Posix's scope and thus would
require that you write & maintain a C "bootstrap" program...

Not difficult, but not entirely in C# either.

 - Jon


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to