[Mono-dev] [PATCH] patches that allow calling mono_init_com_types from native using ICall's.
Tom Hindle
tom_hindle at sil.org
Tue Jan 6 11:56:52 EST 2009
Hi,
Thanks for your input,
I have added it as a Bug,
https://bugzilla.novell.com/show_bug.cgi?id=463843
On Tue, 2009-01-06 at 10:06 -0500, Bill Holmes wrote:
> Tom,
>
> 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.
>
> -bill
Attached is the patch which adds mono_init_com_types to suggested
functions.
Thanks,
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono_121496_adding_mono_init_com_types.patch
Type: text/x-patch
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
mailing list