[Mono-devel-list] embedding mono in the main thread

Dave Camp dave at ximian.com
Thu Jan 15 17:00:48 EST 2004


I'm working on a nautilus extension that loads mono.  Nautilus
extensions are called in the main thread, so I'd like to run the mono
code in the main thread.

Miguel tells me that it's ok to run from the main thread (which is not
created with the #include-before-pthread trick) as long as all
references to mono objects are stored on the heap.  But libmono seems to
keep references on the stack (usually only temporarily, but presumably
the gc can run in a different thread at some point).

Is it reasonable to try embedding mono in the main thread?

Thanks,
-dave 




More information about the Mono-devel-list mailing list