Program freezes after a while

I thought you said you had solved the problem in the receiver. Is it the sender or receiver which is freezing now? Have you posted the current code for that? What hardware connections do you have to it?