Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why Exception occured getting address of COM function ? i.e at AddressOfMember

9 views
Skip to first unread message

glitteringsounds

unread,
May 13, 2010, 7:18:47 AM5/13/10
to
Hello,

I am getting address of COM function by loading type library (TLB) and
iterating over types using ITypeLib and ITypeInfo.
After calling AddressOfMember function of ITypeInfo I am facing
following exception:

System.Runtime.InteropServices.COMException (0x800288BD): Wrong module
kind for the operation. (Exception from HRESULT: 0x800288BD
(TYPE_E_BADMODULEKIND)) at
System.Runtime.InteropServices.ComTypes.ITypeInfo.AddressOfMember(Int32
memid, INVOKEKIND invKind, IntPtr& ppv).

Any idea how to get rid of this excpetion?

Regards
Usman

0 new messages