Hello !! Welcome to Windows 7 Support Forums !!
Right Click on Yahoo Messenger icon go to Properties then under compatibility tab make sure nothing is checked if you have any of those boxes checked uncheck it. Then try to open it again.
Hope this helps,
Captain