Namespaces
Variants
Actions
Revision as of 09:56, 7 September 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:CContactDatabase::DeleteDefaultFileL() always returns error code -14 KErrInUse (Known Issue)

Jump to: navigation, search
Archived.png
Archived: 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}}.

Article Metadata

Compatibility
Platform(s): S60 3rd Edition (initial release) and FP1

Article
Created: User:Technical writer 1 (02 Nov 2007)
Last edited: hamishwillee (07 Sep 2012)


Description

S60 3rd Edition/S60 3rd Edition, FP1 documentation (SDK help) states that the static function CContactDatabase::DeleteDefaultFileL() deletes the default contact database. However, it always returns the error KErrInUse (-14).

The following APIs return the same error:

CContactDatabase::GetDefaultNameL(defaultDb);
CContactDatabase::DeleteDatabaseL(defaultDb);

How to reproduce

Write an application which implements CContactDatabase::DeleteDefaultFileL(), run it in the device, and check the return value.

Solution

There is no solution to delete the default contact database. A simple workaround useful in some cases is to delete all the contacts in the default contact database using DeleteContactsL(const CContactIdArray &aContactIds) instead of deleting the default contact database.

281 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved