[Mono-dev] Problem when embedding dll (without Main method)

holgers hschmalle at afmg.eu
Mon Oct 12 11:56:39 EDT 2009


Thanks for the quick help! -> solved
Regards,
Holger


Robert Jordan wrote:
> 
> holgers wrote:
>> Hello,
>> 
>> when embedding a dll which has no main method I encountered the following
>> problem:
>> 
>> I cannot invoke mono_jit_exec(...) because there is no main. This results
>> in
>> a not completely initialized runtime.
>> 
>> Is there another way to initialize the runtime correctly?
> 
> There is no other way, but it's sufficient to perform mono_jit_exec
> or mono_jit_init followed by mono_runtime_exec_main on an *arbitrary*
> assembly. This assembly could be as simple as this:
> 
> class Program { static void Main () {} }
> 
> Robert
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-when-embedding-dll-%28without-Main-method%29-tp25854471p25858248.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list