This project has moved and is read-only. For the latest updates, please go here.


XBee crash when checksum error


I was dealing with this problem a little time and finally found the source. In XBee.cs class, private void ReceiveData() method, private MemoryStream _readBuffer didn't discart fake frames when checksum error. The thread still received data and drove _readBuffer "outofmemory".
I have solved checking length and checksum separately, with new GetLenth() and Checksum() methods, and some corrections in do{} while block.
Find attached the new XBee.cs for testing

file attachments

Closed Jun 8, 2011 at 5:28 PM by jcsaez