[Mono-devel-list] AW: appdomains_list

Dietmar Maurer dietmar at ximian.com
Thu Jul 10 02:38:42 EDT 2003

> -----Ursprüngliche Nachricht-----
> Von: He HongFu [mailto:hfhe at stryon.com] 
> Gesendet: Mittwoch, 09. Juli 2003 03:01
> An: dietmar at ximian.com
> Betreff: 
> Hi, Dietmar Maurer:
>     in function mono_init() located at file domain.c, 
> allocated a new hashtable for global variable 
> "appdomains_list', I think it is felicitous to release the 
> global varialbe at function mono_domain_unload(), which 
> destroy a domain allocated by mono_init(), OK?

No, mono_domain_unload() only unloads a single domian, but we use
appdomains_list during the lifetime of an application (not the lifetime of a

Maybe it would be possible to check how many domains are alive. If we unload
the last appdomain we can also release appdomains_list.

- Dietmar

More information about the Mono-devel-list mailing list