A day for a lesson

Published May 22, 2009
Advertisement
Recently I have been working on a sever system and network engine. Well for the last 3 days I have been fighting a bug while setting things up to receive multiple packets at once. The code looked great but for some reason anytime I received more then 1 message it would corrupt the msg's and/or crash my program. I changed all the code around and messed with it and kept fighting it. Then this morning I just happened to look a the debug output of the test client and noticed a 0 that shouldn't be there. Turns out only my first test MSG was getting its length set properly and so on the server side it read the wrong part of the receive buffer. So I looked for 3 days almost in the wrong spot. The good thing about this is it has taught me to keep a broad thought process when you have a ugly bug because it could be caused elsewhere. So time to finally move forward and not make that mistake again.
Previous Entry Moving forward
Next Entry Unity
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement