×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    6

    Problem in Opening Contact DB

    Hi there,
    I am using following piece of code to Open the contactsDb..

    TFileName DbFilePath;
    CContactDatabase::FindContactFile(DbFilePath);

    TRAPD(err, iCContactDatabase = CContactDatabase::OpenL
    (DbFilePath));
    if (err == KErrNotFound) {
    return ETrue;
    }

    But it crashing the Emulator...Any solution on this would be quite helpful for me...I am using Series60 SDK.


    Thanks in advance...
    Regards,
    P.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    what is the error note shown during the crash ?

    see this for reference: http://www.newlc.com/article.php3?id_article=150

    yucca

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    6
    Hi,
    thanks for ur response...

    Actaully, the same piece of code is working for WINS GUI(.APP) based application but its NOT working for Console based (.exe) application. Emulator getting closed as soons as it executes OPenL().
    My requirment is too update contactDb using console based application...

    I guess EdError also wont help me, if it is Console based..isn't it?

    Please respond...

    Regards,
    P.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    please try it out first.... then we can discuss more about it.

    yucca

Posting Permissions

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