开发者

There's already an instance of AddressBookSync running. How to resolve this error?

I am deleting contacts from addressbook programmatically. I got error "There's already an instance of AddressBookSync running" on console and my application is not responding. There are 5000 contacts in addressbook.

When iSync preferences option "Enable Syncing on this computer" is unchecked then all is working well. But when it is checked, then got that error. So what to do for deleting contacts with "Enable Syncing on this computer"开发者_运维问答 option checked.

or any other way for that is acceptable...


Are you using Sync Services in your app?.

Found this warning in the Sync Services Programming Guide.

Important: If your application uses the Sync Services and Address Book frameworks together, then you should not use Sync Services to sync data shared with the Address Book Framework. The Address Book Framework already syncs its records with Sync Services, so applications sharing the Address Book data do not have to (and should not) sync those records. The results are unpredictable and may result in data loss, if you attempt to sync the same data as the Address Book Framework.


Tell user to disable syncing on this computer from iSync. It should be not done by programmatically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜