Can you give us more information on the error? Like what it shows in the error message? But what I usually when I get errors on my camera, I go to Settings > Applications > Manage Applications > Look for Camera (default camera app) then clear data.