×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Question CCamera CaptureImage in E72, it occus wserv 7 error

    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~

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,170

    Re: CCamera CaptureImage in E72, it occus wserv 7 error

    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.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Re: CCamera CaptureImage in E72, it occus wserv 7 error

    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;
    }

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,170

    Re: CCamera CaptureImage in E72, it occus wserv 7 error

    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..

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    16

    Thumbs up Re: CCamera CaptureImage in E72, it occus wserv 7 error

    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.

Similar Threads

  1. playing aduio file when call is rejected.
    By santosh_sangewar in forum Symbian
    Replies: 6
    Last Post: 2009-06-12, 11:35
  2. problem with the XML Parser SyExpat
    By Vitaly_iva in forum Symbian
    Replies: 2
    Last Post: 2006-06-05, 11:09
  3. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11
  4. Replies: 0
    Last Post: 2002-09-24, 13:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×