Archived:CContactDatabase problem in some S60 3rd Edition, FP2 devices (Known Issue)
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.
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();
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.