0

I am trying to run an iOS application which is migrated from SUP2.1.2 to SUP2.1.3. An application is working fine with device registration and connection, but the problem arises when i try to synchronize 3 MBO synchronization group. The synchronization is working fine for the first time, but when i click over different item to synchronize its detail i am getting following error:

  *** -[CFString retain]: message sent to deallocated instance 0x6465650

I think problem is coming under the following MBO method

 + (ITEMSSynchronizationParameters*)getSynchronizationParameters
 {
     return (ITEMSSynchronizationParameters*)[(SUPSyncParamEntityDelegate*)([[ITEMDATABASE delegate]           getDelegate:@"ITEMSSynchronizationParameters"]) getSynchronizationParameters];
 }

and i am calling this method while synchronizing app details as follows

    ITEMSynchronizationParameters *syncParam = [ITEMSynchronizationParameters getSynchronizationParameters];
    [syncParam setSYNC_NO:@"101"];
    [syncParam save];

While It also not allowing me to delete sync parameter so that on each items click i should get different information details as [syncParam delete] is causing the same * -[CFString retain]: message sent to deallocated instance 0x6465650 error. I have used patch 01 and 02 but the problem is still present. Any help would be appreciated.

4

1 回答 1

0

我们有同样的问题。在我的情况下,这个问题的答案是为 SynchronizationParameters 创建一个语言环境属性并使用该属性。我不知道为什么,但现在微妙的错误消失了。

@property (nonatomic, retain) ITEMSynchronizationParameters *item_sp;

 item_sp = [Item getSynchronizationParameters];
 item_sp.syncparam =  @"XXXXX";
 [item_sp save];
于 2013-01-16T12:37:59.573 回答