markiodev / Networker

A simple to use TCP and UDP networking library for .NET. Compatible with Unity.
MIT License
478 stars 77 forks source link

ArgumentOutOfRangeException #46

Open darkfriend77 opened 5 years ago

darkfriend77 commented 5 years ago

Something strange happens here ... need help, I can reproduce the failure

fail: Networker.Client.ClientPacketProcessor[0] System.ArgumentOutOfRangeException: Index and count must refer to a location within the buffer. Parameter name: bytes at Networker.Client.ClientPacketProcessor.Process(Byte[] buffer, ISender sender) in C:\Users\admin\Source\Repos\Networker\Networker\Client\ClientPacketProcessor.cs:line 134 at Networker.Client.ClientPacketProcessor.Process(Socket socket) in C:\Users\admin\Source\Repos\Networker\Networker\Client\ClientPacketProcessor.cs:line 70

darkfriend77 commented 5 years ago

https://github.com/darkfriend77/SabberStoneNetwork/tree/01c819f641d21d5bafcc3c278c17e0fa04134d29

running the SabberStoneNetwork will reproduce the error ...

image