Before continue reading the entire post, I would like to stress this post is specific for Compaq laptop but you can also apply for other type if you know to choose your driver. I made this post because i got an email asked about Webcam crashed using MSN Messenger and she report back that its work for her. SO here is my original reply to her email and hope help you too, if you still having trouble( Especially different models) leave your comments.
here some suggestion that may help you:
first update your youcam driver:
http://h10025.www1.hp.com/
restart and if it still crash follow next step:
first download and istall the update below:
windows vista service pack 1 update: http://www.microsoft.com/
then web quickplay update:
http://h20000.www2.hp.com/