Default "camera stopped working" in every rom

I dunno what happened to my xs. i flashed pacman rom. Camera was working fine. sometime after installing some apps camera stopped working. All i can see is pink screen. I reflash that rom. Still the same prob. So i flashed back to stock jb. Camera was ok. I flashed another rom -carbon & omni. I got an error 'camera stopped working'
I have a rom in which camera was working fine.. I flashed that.. Still getting the same error 'camera stopped working'
What is the problem all about??
Sorry for my bad english