anerjan / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

DynamicMethod throw exception by PrepareSerializer of an array #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

The execution of:
     Serializer.PrepareSerializer<string[]>();

or any other array, throw a SystemArgumentException 

StackTrace:
   in System.Reflection.Emit.DynamicMethod.Init(String name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] signature, Type owner, Module m, Boolean skipVisibility, Boolean transparentMethod)
   in System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Type owner, Boolean skipVisibility)
   in ProtoBuf.Compiler.CompilerContext..ctor(Type associatedType, Boolean isWriter, Boolean isStatic) in C:\Dev\protobuf-net\protobuf-net\Compiler\CompilerContext.cs:riga 227
   in ProtoBuf.Compiler.CompilerContext.BuildSerializer(IProtoSerializer head) in C:\Dev\protobuf-net\protobuf-net\Compiler\CompilerContext.cs:riga 48
   in ProtoBuf.Serializers.CompiledSerializer..ctor(IProtoTypeSerializer head) in C:\Dev\protobuf-net\protobuf-net\Serializers\CompiledSerializer.cs:riga 35
   in ProtoBuf.Serializers.CompiledSerializer.Wrap(IProtoTypeSerializer head) in C:\Dev\protobuf-net\protobuf-net\Serializers\CompiledSerializer.cs:riga 24

Original issue reported on code.google.com by simionat...@gmail.com on 6 Sep 2011 at 2:16

GoogleCodeExporter commented 9 years ago
I forgot, the version is v2 r444.

Original comment by simionat...@gmail.com on 6 Sep 2011 at 5:47

GoogleCodeExporter commented 9 years ago

Original comment by marc.gravell on 7 Sep 2011 at 4:50