Hello and welcome to BBB! I'm not sure of the exact problem from the limited information you've given, but a lot of the application errors recently with Yahoo Messenger have been a result of malware.
I'd suggest a complete virus and spyware scan with up to date definitions and see if that makes a difference.