XBee + library + arduino = freezes

I suspect something funny goes on with serial port on arduino but I have no idea exactly what it is.

And, I suspect that it's your code. Care to wager on who's right?