swak / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

BUG !!! static NetIncomingMessage() maps to Int32 ReadByte() in s_readMethods #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Breakpoint in on s_readMethods[it] = mi;
2.  Notice that Byte ReadByte values gets over written with Int32 ReadByte

What is the expected output? What do you see instead?

When using om.WriteAllFields in client   and om.ReadAllFields in server
an error occurs as above when serializing class with byte type properties
because it tries to assign a Int32 ReadByte method which is incompatible.

I tried stopping this happening by ensuring Byte ReadByte() reader is used 
instead by stopping previously allocated keys from being over written to the 
dictionary structure but when i start the server it shows errors with a key not 
found exception.

What version of the product are you using? On what operating system?
Latest version 2010-10-14 and previous version.

Please provide any additional information below.

Original issue reported on code.google.com by mark.js...@googlemail.com on 15 Oct 2010 at 10:30

GoogleCodeExporter commented 9 years ago
Nice catch; fixed in rev 128

Original comment by lidg...@gmail.com on 16 Oct 2010 at 6:05