[Mono-dev] embedding C, AppDomain.CurrentDomain.SetupInformation.ApplicationBase

vavra at software602.cz vavra at software602.cz
Thu Mar 23 08:54:36 EST 2006

     I continue with my config problems ...
a)C executable calls c# dll:
method = mono_class_get_method_from_name("getAppBase()", ..)

b) In C# DLL I access AppDomain.CurrentDomain.SetupInformation.ApplicationBase:
public static string getAppBase() {
    return ...ApolicationBase;

Problem: returned value is NULL.

When I call from C a C# EXE using mono_jit_exec(...)
it probably initializates C# assembly and ..ApplicationBase is correct.

Is there any function in embedding api, which would initilizates an dll assembly?
This problem also correspond with my previous post about AppSettings, which is not also initializated in situation desribed above.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060323/3377939d/attachment.html 

More information about the Mono-devel-list mailing list