Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:CContactDatabase problem in some S60 3rd Edition, FP2 devices (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

If the Contacts application is open in the background, accessing the contact database from a 3rd party application at the same time may cause problems when switching back to the built-in application and trying to view contacts.

Article Metadata
Tested with
Devices(s): Tested on Nokia 6210 Navigator, Nokia N96
Platform(s): S60 3rd Edition FP2, S60 5th Edition
S60 3rd Edition FP2
Keywords: CContactDatabase::CloseTables()
Created: User:Technical writer 1 (17 Dec 2008)
Last edited: hamishwillee (15 Jun 2012)


With the Contacts application running in the background, executing the following code may cause some problems:

// Open the default contact database
CContactDatabase * pDb = CContactDatabase::OpenL();
delete pDb;

When switching back to the Contacts application, the following message is displayed: No contacts. Contacts from selected memories not available.

How to reproduce

This is easy to reproduce with the S60CppExamples\Contacts example application available in the SDK. Open Contacts in the main view, start the example application, select Options > Open > Default database, exit from the example application, and switch back to Contacts.


Do not call CContactDatabase::CloseTables().

CloseTables() is a legacy function from the old contacts model architecture, and should no longer be used when closing the contacts model - it is sufficient to delete the CContactDatabase object.

This page was last modified on 15 June 2012, at 06:59.
43 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.