UDP multicast group on Windows Phone 8

I notice you use the loopback. I think it means that when you send a message from your client you will receive the message you sent also. This means your receive handler will fire. It has the effect of clearing the receive buffer in a seemingly unthreadsafe fashion. Try putting some try catch in your receive method and see if anything untoward is happening but you might instead just not use the shared receive buffer in any case.

Leave a Comment