Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:23, 2 November 2007.

KIS000774 - CContactDatabase::DeleteDefaultFileL() always returns error code -14; KErrInUse

From Forum Nokia Wiki


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.

Related Discussions
Thread Thread Starter Forum Replies Last Post
CVideoPlayerUtility problem on N90 mmikkone Symbian Media (Graphics & Sounds) 0 2006-06-14 15:32
GetRemotePartyInfo returns nothing owcs General Symbian C++ 3 2004-07-13 09:37
CImageEncoder not working apsaarin General Symbian C++ 4 2004-06-15 09:11
Adding contacts to Database. szhkazmi General Symbian C++ 2 2008-03-26 07:33
Problem in CContactdatabase::ImportContactsL symnew General Symbian C++ 2 2006-05-17 14:01
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX