[Mono-dev] [PATCH] patches that allow calling mono_init_com_types from native using ICall's.

Tom Hindle tom_hindle at sil.org
Mon Jan 5 18:37:38 EST 2009


Hi,

Attached are two patches that allow calling mono_init_com_types using
ICALL.

the function mono_init_com_types() is usually called automatically when
needed by the following internal functions in marshal.c
emit_ptr_to_object_conv,
emit_object_to_ptr_conv,
emit_struct_conv,
emit_marshal_com_interface,
emit_marshal_variant,
cominterop_get_native_wrapper,

However in none of these functions have run it not possible to call
functions like GetIUnknownForObjectInternal and QueryInterfaceInternal
via ICALL.

If this approach isn't acceptable would it be possible to add explicit
calls to mono_init_com_types info methods like
GetIUnknownForObjectInternal and QueryInterfaceInternal?

Thanks
Tom Hindle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcs_r121536_exposing_mono_init_com_types.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090105/269dae61/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono_r121548_exposing_mono_init_com_types.patch
Type: text/x-patch
Size: 1901 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090105/269dae61/attachment-0001.bin 


More information about the Mono-devel-list mailing list