[Mono-devel-list] Embedding
Joe Ante
joe at uti.is
Wed Jun 23 12:31:14 EDT 2004
Hi,
Ive asked these questions on the mono list before, but A Rafael D Teixeira
kindly suggested that this list would be more appropriate, so I am going to
post the unanswered mails here again.
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):
Note that I don¹t call and don¹t want to call the main function of any mono
scripts.
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
More information about the Mono-devel-list
mailing list