none
How to solve OutOfMemery Exception comming when i call syncAgent.Synchronize() in windows mobile 6.0 RRS feed

  • Question

  • Hello,

             I have created sync. application for syncing  data from server to mobile database using sunc. service.but when I call syncAgent.Synchronize() method after few second it will throw me

    OutOfMemery Exception. Following is the code for synchronization.

                    Dim svcProxy As THMobileSyncService.THMobileDataCacheSyncService _
                     = New THMobileSyncService.THMobileDataCacheSyncService() With {.Timeout = 14400000}
                    Dim syncAgent As THMobileDataCacheSyncAgent = New THMobileDataCacheSyncAgent()
                    syncAgent.RemoteProvider = New ServerSyncProviderProxy(svcProxy)
                  
                    Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()

             Please tell me solution for OutOfMemery Exception.

    Thursday, July 19, 2012 6:38 AM

Answers