[Mono-dev] [PATCH] patches that allow calling mono_init_com_types from native using ICall's.
tom_hindle at sil.org
Tue Jan 6 11:56:52 EST 2009
Thanks for your input,
I have added it as a Bug,
On Tue, 2009-01-06 at 10:06 -0500, Bill Holmes wrote:
> I agree with Kornél. Please add mono_init_com_types to
> GetIUnknownForObjectInternal and GetIDispatchForObjectInternal. I do
> not understand why it would be needed in QueryInterfaceInternal. Even
> if the object is managed, cominterop_ccw_queryinterface would need the
> mono_init_com_types call, but that should have been called from
> GetIUnknownForObjectInternal (when you add it.)
> Another way to put it is, what are you calling QueryInterface on that
> needs the types initialized from mono_init_com_types?
yep I understand, I'm only passing objects to QueryInterfaceInternal
that have been retrieved by calling Get???ForObjectInternal, and so
adding it to QueryInterfaceInternal isn't necessary.
Attached is the patch which adds mono_init_com_types to suggested
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 647 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090106/23941d4e/attachment.bin
More information about the Mono-devel-list