[Mono-dev] [PATCH] Fixes and improvements for mixed-mode assembly support

Kornél Pál kornelpal at gmail.com
Tue May 13 11:28:38 EDT 2008


This is the patch without renaming and thread.c modification. Otherwise 

Currently mixed mode assembly support is disabled so this patch would be 
needed for reenabling it.

* domain.c: Open exe_image anyway so that it can be fixed up. Add a 
mono_close_exe_image function that closes exe_image.

* image.c: Fix reference counting when DLL image is loaded using LoadLibrary 
outside of image.c. The image was previously freed in this case using 
FreeLibrary even when it's memory was referenced by metadata that caused the 
crash reported by Jonathan Chambers.

* coree.c: Some improvements and add mono_set_act_ctx that loads manifest 
file from the main assembly when process is created from mono.exe. This is 
required for MSVCRT support but may be used by other assemblies as well for 
example for XP Visual Style support.

Please review the attached patch and if you like it please approve it.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: coreefix.diff.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080513/7a0a6c52/attachment-0001.txt 

More information about the Mono-devel-list mailing list