[Mono-list] Embedding mono
Joe Ante
joe@uti.is
Tue, 22 Jun 2004 23:31:05 +0200
HI,
The embedding sample code uses mono_runtime_exec_managed_code. And then
loads the dlls inside the callback. This is a bit inconvenient for me and I
wonder if it would be a valid strategy to do like (simplified):
void main ()
{
domain = mono_jit_init ()
mono_thread_attach (domain)
mono_domain_assembly_open ()
mono_runtime_invoke
}
Instead of the way described in the mono embedded document:
void callback ()
{
mono_domain_assembly_open ()
mono_runtime_invoke
}
void main ()
{
mono_jit_init ()
mono_runtime_exec_managed_code (callback)
}
Joe Ante