[Mono-list] Marshaling problem in .19

Jérôme LABAN jlaban@wanadoo.fr
Sat, 25 Jan 2003 21:08:44 +0100


I'm also having troubles using String marshalling in some cases :

    [MarshalAs(UnmanagedType.ByValStr, SizeConst=16)]

seems to be loaded as

    [MarshalAs(UnmanagedType.LPStr)]

While actually, in the method emit_struct_info (marshal.c) on the line 3013,
I presume that
the info->fields[i].mspec should not return a NULL pointer when a marshal
attribute is set.

Using LPStr while it should be ByValStr leads the marshaller to use string
data as a pointer.

Is this a type loader problem ? mspec member should be filled with something
I guess...


----- Original Message ----- 
From: "Colin Francis Branch" <cbranch@stetson.edu>
To: <mono-list@ximian.com>
Sent: Thursday, January 23, 2003 7:26 PM
Subject: [Mono-list] Marshaling problem in .19


>
> For background see email about Mashaling problem with .18
>
> Recieve Error :File marshal.c: line 2176 should not be reached
> with trying to Marshal a string.
>
>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list