hello everybody, I develop picture function in the s60, the function works well in the 5800 and N81, but in E72, it crash.
The crash message is WSERV 7. Why it happen? and how to solve it? thank you~
hello everybody, I develop picture function in the s60, the function works well in the 5800 and N81, but in E72, it crash.
The crash message is WSERV 7. Why it happen? and how to solve it? thank you~
that error is "Invalid bitmap handle", so for some reason your bitmap is not loaded/constructed, so do debug and see what is happening with your images and see that none of the functions involved are not reporting any additional errors.
thanks for your reply. The error is occus when I StopViewFinderL and CaptureImage. If I don't StopViewFinder, it would not occus. But it did not work fine in 5800 and E81.
TBool CVideoContainer::CapturePicture()
{
iCamera->StopViewFinder();
CCamera::TFormat format = CCamera::EFormatExif;
const TInt KImageSizeIndex = 0; // 1st largest image size
iCamera->PrepareImageCaptureL(format, KImageSizeIndex);
iStatus = EStatusCaptureImage;
iCamera->CaptureImage();
return ETrue;
}
ok, if you don't want to check the actual problem, then you could just ignore it... Meaning that where ever you are using the bitmap, first check that the pointer is non-Null, and then check that it has valid handle, and only use the bitmap if the handle is valid.
Of course if you delete the bitmap, do remember to set it to NULL. Then most of the error's should go away..
Thank you, symbianyucca. you are really a nice man. I solve the problem. Because the Draw() function get the old bitmap, but the old bitmap's handle is null, so the error occus. Now it would not happen again. Thank you for your help.