[Mono-dev] mono_method_desc_search_in_image problem, and some question...

Robert Jordan robertj at gmx.net
Wed Feb 21 21:57:09 UTC 2018


On 21.02.2018 11:20, pierre wrote:
> Hi,
> 
> Anyone about this??
> if I run "mono_domain_unload(domain);"
> and after do
> assembly = mono_assembly_load_from_full(image, referenceName, &status, 
> FALSE);
> it is not working properly if referenceName is kept from one launch to 
> the next...

This is by design:

https://github.com/mono/mono/blob/master/mono/metadata/image.c#L1530

The runtime keeps an image cache indexed by the image name (which is
usually the fully specified file name, IIRC).

Use mono_image_open_from_data_full () which automatically generates
an unique file name for the image. The file name of data images is
not that important after all. It just have to be unique.

Robert


More information about the Mono-devel-list mailing list