Groups
Groups
Sign in
Groups
Groups
Protocol Buffers
Conversations
About
Send feedback
Help
why i am getting ProtoBuf.UnexpectedEnumException
8 views
Skip to first unread message
skcr
unread,
Aug 26, 2011, 6:17:04 PM
8/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
i have enum like
<ProtoContract()> _
Public Enum varenums
<ProtoMember(1)> _
varenum1
<ProtoMember(2)> _
varenum2
<ProtoMember(3)> _
varenum3
<ProtoMember(4)> _
varenum4
<ProtoMember(5)> _
varenum5
<ProtoMember(6)> _
varenum6
<ProtoMember(7)> _
varenum7
<ProtoMember(8)> _
varenum8
<ProtoMember(9)> _
varenum9
<ProtoMember(10)> _
varenum10
<ProtoMember(11)> _
varenum11
<ProtoMember(12)> _
varenum12
<ProtoMember(13)> _
varenum13
<ProtoMember(14)> _
varenum14
End Enum
it Serialize fine like this
Using m As New MemoryStream()
Serializer.Serialize(m, msg)
Return m.ToArray()
End Using
but when i deSerialize it it always throw a exception
ProtoBuf.UnexpectedEnumException on ProtoMember(13) which is
varenum13
it works fine for others
i tried changing the name of enum but still i get the exception
Reply all
Reply to author
Forward
0 new messages