[PATCH] mscoree: Implement ICorRuntimeHost::CreateDomain{, Ex}(). (try 2)

Vincent Povirk vincent at codeweavers.com
Mon Feb 15 14:14:00 CST 2016


I wrote a test program (attached), and it doesn't work:

CreateDomain failed, hr=80004002

I didn't investigate, but I remember the issue I ran into when I tried
to implement this. AppDomain.CreateDomain doesn't return a "real"
AppDomain object, it returns a TransparentProxy, and the
TransparentProxy doesn't support the _AppDomain interface. The real
AppDomain object lives in the newly-created appdomain.

I think you could get the real AppDomain and an IUnknown pointer for
it if you used the newly-created MonoDomain, but I suspect the
MonoDomain pointer you're getting is also wrong.

Also, I'm not sure it's necessary to lock the RuntimeHost while
creating the new AppDomain, it should only be needed when accessing
the list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adddomain.c
Type: text/x-csrc
Size: 2419 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160215/7e92c60f/attachment.c>


More information about the wine-devel mailing list