In my application, I uses camera switching ( between front and back camera ). My sample code pseudo-code is like
Code:void SwitchCamera() { iCam->ReleaseCam(); // calls PowerOff() and Release() of CCamera iCam->AlterCamera(); // here construct CCamera changing camera index from current selection iCam->ReserveCam(); // calls Reserve() of CCamera } void ReserveComplete( TInt aError ) // From MCameraObserver { // I got (-14) KErrInUse here }
So Is there any other necessary step to follow in SwitchCamera() method? Thanks


. Actually previous camera was using by some other resource and I was forgotten that part which causes the problem.


