×
Namespaces

Variants
Actions
Revision as of 10:23, 2 November 2007 by Forum Nokia KB (Talk | contribs)

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

From Nokia Developer Wiki
Jump to: navigation, search


Template:KBKI

ID KIS000774 Creation date November 2, 2007
Platform S60 3rd Edition, S60 3rd Edition FP1 Devices  
Category Symbian C++ Subcategory Contacts


Overview

The static function CContactDatabase::DeleteDefaultFileL() always returns error code -14; KErrInUse.


Detailed 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.

110 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.

×