UIQ: Code crash when accessing contacts data for viewing

Login to reply to this topic.
Sat, 2006-02-11 11:54
Joined: 2006-02-08
Forum posts: 3
History: I have developed an app for Series 60 phones and things are working fine for these phones (Nokia 6600 6630 6681 etc..) The app accesses the contact database. The next step was to deploy the same app for UIQ phones (SE 910i is what I am using). I ported my Series 60 app to UIQ using Peroon's S2U convertor (http://www.peroon.co.il/s2u.html).

Now: In SE 910i (UIQ, 7.0) I try to open the contacts list and show to the user using the CPbkMultipleEntryFetchDlg class. I use the following code:

Code:
// Code snippet begins: taken from one of the phone book examples

// CPbkContactEngine* phonebookResource; <- in .h, initialized in constructor

RPbkViewResourceFile  phonebookResource( *(CEikonEnv::Static())  );
        if ( !phonebookResource.IsOpen())
        {
                phonebookResource.OpenL();
        }

        CContactDatabase::TContactViewFilter filter(CContactDatabase::EPhonable);
        CPbkMultipleEntryFetchDlg::TParams params;
        params.iContactView = &iPbkContactEngine->FilteredContactsViewL( filter );

        CPbkMultipleEntryFetchDlg* fetchDlg = CPbkMultipleEntryFetchDlg::NewL( params, *iPbkContactEngine );
        fetchDlg->SetMopParent( this );
        TInt okPressed = fetchDlg->ExecuteLD(); // ----------  CRASH -------------

        CleanupStack::PushL( params.iMarkedEntries );
        if ( okPressed )
        {
// Do what is needed
}

CleanupStack::PopAndDestroy();
phonebookResource.Close();

// Code snippet ends


The code crashes at the line shown as -- CRASH --. The error I get is "CntLockServer PhBkSyncServer 4", "KERN-EXEC 0" and "E32USER-CBase 21". I could understand the last two, but not the first panic.

Any solutions ?

Also: I am able to access and extract ALL the contact entries if the user chooses to process all contacts (no UI stuff needed) and doesn't need to select specific contacts through the pbk dialog.

saha
--

Sat, 2006-02-11 11:57
Joined: 2006-02-08
Forum posts: 3
Re: UIQ: Code crash when accessing contacts data for viewing
Sorry! seems this is offtopic here. Will post it in UIQ forum.

saha
--
  • Login to reply to this topic.