G
Guest
I have a mixed mode dll with a garbage collected interface. The interface is
garbage collected because my derrived class has managed member variables. I
am trying to return a pointer to my interface using GetProcAddress and
calling an exported function which instantiates and returns my derrived
class. While this works for the native portion(also interfaces) of my DLL,
this fails with my managed class. The exception I receive is "Can not
marshal return value: The type definition of this type has no layout
information."
P.S. Sorry for the begging in the subject I just can't seem to find an answer.
garbage collected because my derrived class has managed member variables. I
am trying to return a pointer to my interface using GetProcAddress and
calling an exported function which instantiates and returns my derrived
class. While this works for the native portion(also interfaces) of my DLL,
this fails with my managed class. The exception I receive is "Can not
marshal return value: The type definition of this type has no layout
information."
P.S. Sorry for the begging in the subject I just can't seem to find an answer.