|
Hi,
Thanks to miguel I've found where the problem concerning the
MarshalAsAttribute was. The blob containing the pseudo custom attribute data was
not filled at all when using mcs to generate the assembly.
So, here are tree patches for Mono-0.19, maybe partial but
fixing the marshaling for types UnmanagedType.ByValArray and
UnmanagedType.ByValTStr with a SizeConst parameter.
mono-0.19/mono/metadata/reflection.c
mcs-0.19/class/System.Reflection.Emit/FieldBuilder.cs
mcs-0.19/class/System.Reflection.Emit/CustomAttributeBuilder.cs
(Sorry if patches are not like they are used to be, I'm not
used to make diff files)
These patches allows marshal1 to marshal4 tests to run without
errors.
Could anyone test it and commit it if ok ?
thanks,
Jerome.
|
reflection.c.diff
Description: Binary data
FieldBuilder.cs.diff
Description: Binary data
CustomAttributeBuilder.cs.diff
Description: Binary data
