Archived:CContactDatabase::DeleteDefaultFileL()总是返回错误代码-14 KErrInUse
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Fix metadata) |
hamishwillee
(Talk | contribs) m (moved CContactDatabase::DeleteDefaultFileL()总是返回错误代码-14 KErrInUse to Archived:CContactDatabase::DeleteDefaultFileL()总是返回错误代码-14 KErrInUse) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | [[Category:Symbian C++]][[Category:Lang-Chinese]][[Category:PIM]][[Category:S60 3rd Edition (initial release)]][[Category:S60 3rd Edition FP1]][[Category:Known Issue]] | ||
{{Archived|language=Lang-Chinese|timestamp=20120322082234|user=roy.debjit| }} | {{Archived|language=Lang-Chinese|timestamp=20120322082234|user=roy.debjit| }} | ||
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
| Line 5: | Line 6: | ||
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') --> | |devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') --> | ||
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | ||
| − | |platform= | + | |platform= S60 3rd Edition (initial release) and FP1 |
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> | |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> | ||
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | ||
| Line 21: | Line 22: | ||
|creationdate= 20080411 | |creationdate= 20080411 | ||
|author= [[User:Technical writer 1]] | |author= [[User:Technical writer 1]] | ||
| + | |id= KIS000774 | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
* 详细描述 | * 详细描述 | ||
| Line 39: | Line 34: | ||
下列API都返回同样的错误: | 下列API都返回同样的错误: | ||
| − | <code> | + | <code cpp> |
CContactDatabase::GetDefaultNameL(defaultDb); | CContactDatabase::GetDefaultNameL(defaultDb); | ||
| Line 53: | Line 48: | ||
尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。 | 尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。 | ||
| − | + | ||
| − | <!-- Translation --> [[en:Archived:CContactDatabase::DeleteDefaultFileL() always returns error code -14 KErrInUse (Known Issue) | + | <!-- Translation --> [[en:Archived:CContactDatabase::DeleteDefaultFileL() always returns error code -14 KErrInUse (Known Issue)]] |
Latest revision as of 05:25, 20 August 2012
文章信息
- 详细描述
CContactDatabase::DeleteDefaultFileL()这个静态方法总是返回错误代码-14,KErrInUse
- 如何解决
S60第三版/S60第三饭,FP1文档(SDK帮助)声明静态函数CContactDatabase::DeleteDefaultFileL()删除了缺省的联系人数据库,但它总是返回错误-14,KErrInUse.
下列API都返回同样的错误:
CContactDatabase::GetDefaultNameL(defaultDb);
CContactDatabase::DeleteDatabaseL(defaultDb);
- 如何重演
写一个程序完成CContactDatabase::DeleteDefaultFileL(), 在手机端运行,检查其返回值
- 解决方案
尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。

