×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    NewDuplicateL not supported?

    Hi,

    When I try to call "NewDuplicateL(MCameraObserver2)" or "NewDuplicate2L(MCameraObserver2)" I get an error like "unable to execute file due to security reasons". Capabilities (UserEnvironment) are set properly - I also tested it with other capabilities.

    Is NewDuplicateL indeed not supported? (I am testing on a Nokia 5800 device)

    g.

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: NewDuplicateL not supported?

    Where are you getting the camera handle that you give to NewDuplicateL? You would not be doing anything nasty like trying to guess one...?
    janza

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: NewDuplicateL not supported?

    The camera handle is passed from the CameraWrapper (provided by Nokia).

  4. #4
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: NewDuplicateL not supported?

    There are some restrictions on which Duplicate function you can use. In case the original CCamera instance is created using New2L you should use NewDuplicate2L and if original instance is created using NewL then you should use NewDuplicateL to create duplicate.

    What is the error exact code you receive from NewDuplicateL/NewDuplicate2L?
    janza

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: NewDuplicateL not supported?

    I have tried both Duplicate and Duplicate2L methods - both fail with the error message "unable to execute file due to security reasons".
    The error code raised is "-8".
    Last edited by pixsta; 2010-03-22 at 11:23.

  6. #6
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: NewDuplicateL not supported?

    -8 = KErrBadHandle

    Could mean that the original client used New2L and you are using NewDuplicateL or the original client used NewL and you are using NewDuplicate2L. Same version of Duplicate and NewL methods should be used.

    Other possibility is that the original CCamera instance has been deleted before you try to duplicate.

    Or possibly you are trying to use 0 or negative handle (programming error in your code).

    Hope this helps...
    janza

  7. #7
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: NewDuplicateL not supported?

    Thanks for your help.
    I have created my own "wrapper" now which works. Regarding the duplicate problem I have tried all combination, all without success.

Similar Threads

  1. Supported RVCTs by S60 5th SDK v1.0
    By cflaviu in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2012-01-10, 12:50
  2. nokia e50 (s60 3rd) supported AT commands?
    By aeronine in forum General Development Questions
    Replies: 3
    Last Post: 2008-11-25, 16:00
  3. Oversized application executable
    By lenclud in forum Symbian
    Replies: 19
    Last Post: 2006-09-20, 14:04
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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