I have an ActiveX DLL written in VB6. This library has a class with two
public structures like these
Public Type MyInnerPublicType
...
End Type
Public Type MyPublicType
...
aField(7) as MyInnerPublicType
...
End Type
The same public class as a method like this
Public Function MyPublicMethod() as MyPublicType
...
end function
When I call this method from a C# client I receive an OutOfMemoryException.
It seems to me that the problem is about the nested array of structures (if
I delete it from the public type all works correctly).
Is there any way to solve this problem.
Thanks a lot for any help
>Is there any way to solve this problem.
Marshaling of nested struct arrays isn't supported, sorry.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Luigi - 28 Jun 2005 13:16 GMT
Thank you a lot Mattias for yuur reply.
You gave me a sad news, because I have no way to change the ActiveX DLL I
have to use.
Bye
> >Is there any way to solve this problem.
>
> Marshaling of nested struct arrays isn't supported, sorry.
>
> Mattias