Hi Lucas,
you can use mono_domain_create() and mono_domain_unload() just fine from
c. In fact, I suspect it's actually
easier to do from native code these days. basically what you should do is:
create domain
set it active
load your assemblies
run your code
when you want to reload code,
Hi,
We are developing a game and using C# and C++ with the help of mono.
There are two dlls we use; Dll1 and Dll2. At run-time, I want to change
(update) these dlls without restarting the game (which takes a while). Here is
the code we use:
mono_domain = mono_jit_init(Dll1);
On 13.08.2010 15:10, marcus julius wrote:
Did I make a mistake and/or is there a way to do this?
Once an assembly has been JITed (which basically means that
one of its methods was invoked), there is no way to change it.
There are 2 ways to reload an assembly:
1) change its assembly name and
On 13.08.2010 15:10, marcus julius wrote:
Did I make a mistake and/or is there a way to do this?
There are 2 ways to reload an assembly:
2) Use app domains which can be unloaded together with
their assemblies by design.
Thanks for the quick reply.
Ok, I know how to do this in C#. Is there a
On 13.08.2010 15:39, marcus julius wrote:
On 13.08.2010 15:10, marcus julius wrote:
Did I make a mistake and/or is there a way to do this?
There are 2 ways to reload an assembly:
2) Use app domains which can be unloaded together with
their assemblies by design.
Thanks for the quick reply.
On 8/13/10 4:04 PM, Robert Jordan wrote:
Well, it doesn't really matter who's creating the domains
and loading the assemblies. It's by far easier to implement
this in C# and then mono_runtime_invoke it from C++.
Of course, you can invoke everything from C++ but this will
likely triplicate
Well you could take a look at this code (http://monobin.com/__f7469 ),
should be familiar to some of you ;)
For me it works perfectly under Win7 and MacOS X.
-Frank
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com