Hello, I have the following structure in Windows:
typedef struct {
BYTE FAR *myBtyeArray;
} MYSTRUCTURE;
In .NET this structure is defined like this:
[StructLayout(LayoutKind.Sequential, Size = 4, Pack = 1)]
public class MYSTRUCTURE {
public byte[] myByteArray;
}
which works OK. I then compiled the code successfully on Mono 1.1.16.1 but
when I run my program I get the following error:
** ERROR ** Structure field of type byte[] can't be marshaled as LPArray.
I have read several postings and articles about marshaling but I do not
understand what the underlying problem is. This structure is used in a
function call where the called function will return a pointer to an array of
bytes. How should this be marshaled?
Regards
David
<<attachment: winmail.dat>>
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
