×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Nov 2005
    Location
    Berlin, Germany
    Posts
    48

    Kern Exec 0 with CPbkContactEngine in 3rd Edition

    Hi,

    I want to create an CPbkContactEngine object but I cant. I get an Kern Exec 0 error.

    Code:
    CPbkContactEngine *pbkContactEngine = CPbkContactEngine::NewL();
    All headers are included, no compile-Error!

    Can somebody help me please?

    regards
    Martin
    Last edited by TPMaKom; 2006-03-30 at 17:02. Reason: 3rd edition added

  2. #2
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560

    Re: Kern Exec 0 with CPbkContactEngine in 3rd Edition

    Quote Originally Posted by TPMaKom
    Hi,

    I want to create an CPbkContactEngine object but I cant. I get an Kern Exec 0 error.

    Code:
    CPbkContactEngine *pbkContactEngine = CPbkContactEngine::NewL();
    All headers are included, no compile-Error!

    Can somebody help me please?

    regards
    Martin
    Same reply as on newlc site. You should use CPbkContactEngine::Static()
    Last edited by billbonney; 2006-03-31 at 00:34.

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    196

    Re: Kern Exec 0 with CPbkContactEngine in 3rd Edition

    Quote Originally Posted by pirosl View Post
    Same reply as on newlc site. You should use CPbkContactEngine::Static()
    CPbkContactEngine::Static() return NULL ,Can you test ?,your's application can run ?

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

    Re: Kern Exec 0 with CPbkContactEngine in 3rd Edition

    I'm rather sure it is as easy as reading the SDK docs for required capabilities and actually adding them into the mmp file.

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Kern Exec 0 with CPbkContactEngine

    You cannot use the phonebook engine from an gui-less executable ie one that does not have the S60 framework
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    13

    Re: Kern Exec 0 with CPbkContactEngine

    Try to initialize in the next way, in my case it work:
    CPbkContactEngine* iPbkEngine = CPbkContactEngine::NewL(NULL);

  7. #7
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: Kern Exec 0 with CPbkContactEngine

    hi
    first of all add these capabilities in ur mmp file
    "ReadUserData WriteUserData ReadDeviceData WriteDeviceData"

    then reimport and try it might work

    regards
    Sumit

  8. #8
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Re: Kern Exec 0 with CPbkContactEngine

    Hi,
    three simple questions, please answer.

    1)is is really the case,that you cant use pbkengine with self-signed applications? Since you cant use devicedata capabilities in those.

    first of all add these capabilities in ur mmp file
    "ReadUserData WriteUserData ReadDeviceData WriteDeviceData"
    2)why does S60 dev library say that only ReadUserData WriteUserData would be needed for CPbkContactEngine?

    3) if 1) being yes, How can one acquire certificates,which allow devicedata capabilites (with _no IMEI restrictions_!) ?

    ps.
    And this whether the fileserver session parameter being NULL or not has nothing to do with this issue.


    -M

  9. #9
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Kern Exec 0 with CPbkContactEngine

    Quote Originally Posted by Masar20 View Post
    1)is is really the case,that you cant use pbkengine with self-signed applications? Since you cant use devicedata capabilities in those.
    2)why does S60 dev library say that only ReadUserData WriteUserData would be needed for CPbkContactEngine?
    SDK document says: CPbkContactEngine requires ReadUserData WriteUserData ReadDeviceData WriteDeviceData capabilities. But to be sure, you can test your code on emulator and see what Platsec security warning complains. Remove all the capabilities from your .mmp file and run your application on Emulator. See this article: Epocwind.out

    Quote Originally Posted by Masar20 View Post
    3) if 1) being yes, How can one acquire certificates,which allow devicedata capabilites (with _no IMEI restrictions_!) ?
    There is a option for Open signed Offline where you need to purhcase a Publisher ID first. Read more from here: http://developer.symbian.org/wiki/in...bian_Signed%29
    Nokia Developer Wiki Moderation team

  10. #10
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Re: Kern Exec 0 with CPbkContactEngine

    There is a option for Open signed Offline where you need to purhcase a Publisher ID first. Read more from here: http://developer.symbian.org/wiki/in...bian_Signed%29
    This has IMEI restrictions, doesnt it?

    SDK document says: CPbkContactEngine requires ReadUserData WriteUserData ReadDeviceData WriteDeviceData capabilities.
    Where is this SDK documentation located in the SDK directory?(for example in S60_3rd_FP2_SDK_v1.1) as I checked the information from this forum:

    http://library.forum.nokia.com/

    and search for CPbkContactEngine (3rd edition):
    Code:
    CPbkContactEngine Class Reference
    
    API published in: S60 1st Ed
    API deprecated in: S60 5th Ed
    
    Link against: pbkeng.lib
    Capability Information
    
    Required Capabilities
    
    ReadUserData WriteUserData
    br
    -M
    Last edited by Masar20; 2009-10-28 at 10:17.

  11. #11
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Kern Exec 0 with CPbkContactEngine

    In FP2 some capabilities were removed from the API's and some changed - for example Location became a user grantable capability

    See http://discussion.forum.nokia.com/fo...d.php?t=103255 comment 30.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  12. #12
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Re: Kern Exec 0 with CPbkContactEngine

    Thanks for this answer,
    Is there a complete list of capability changes in fp2-scope so you could check the backwards compatibility,capability wise, of your featurepack2 applications?

    too bad this is not supported until 3.2.
    And it looks like the only way to get this functionality enabled, for an arbitrary 3rd party developer, in older devices is to _buy_ those certificates.?

    Or is there another API with some built in dialogs to access (read) phonebook? (couldnt find anything similar with wiki help)

    cheers
    -M
    Last edited by Masar20; 2009-10-28 at 12:48.

  13. #13
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Kern Exec 0 with CPbkContactEngine

    Thats the only API to do phonebook UI unfortunatly. I did beg cry and plead to have it back ported to earlier releases but to no avail...

    There are no docs covering which API's changed capability aside from the thread I posted in my previous response.

    A publisher id is required if you want to put your application into any of the stores so you need it anyway
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. S60 3rd edition, kern exec 3 on dialogs
    By Symbian_Challenge_0418 in forum Symbian
    Replies: 2
    Last Post: 2008-02-27, 10:07
  2. Replies: 2
    Last Post: 2007-07-19, 01:29
  3. why kern exec 3 on CopyFile?
    By flicker82 in forum Symbian
    Replies: 2
    Last Post: 2005-05-16, 02:25
  4. please help! setting page issue (checkbox) kern exec 3
    By flicker82 in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-02-10, 12:57
  5. DirectGraphics/fillPolygon and KERN - EXEC 3 on 7650
    By andrew_nevick in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-03, 09:15

Posting Permissions

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