C# COM VB6 interop reflection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • afrancois
    New Member
    • Oct 2008
    • 2

    C# COM VB6 interop reflection

    Hello!

    Does any can explain me why the following exception means?


    Code:
    '((System.Type)(((System.Reflection.MemberInfo)(((System.Exception)($exception)).TargetSite)).DeclaringType)).DeclaringMethod' threw an exception of type 'System.InvalidOperationException'
    
    {"Method may only be called on a Type for which Type.IsGenericParameter is true."}
    
    at System.RuntimeType.get_DeclaringMethod()"

    This is part of the stack trace I have on AccessViolation Exception.
    This happens sometimes only when I call a method of a COM object.

    Any idea?

    Thanks for some help.
Working...