Search code examples
c#sqlitewindows-phone-8synchronizationmicrosoft-sync-framework

System.OutOfMemoryException when batching data to client using Microsoft Sync Framework


I am currently using Microsoft Sync Framework to Sync Data from a mssql database to a sqlite database hosted on Windows Phone 8. I am using the SyncToolkit.

I am using SetDownloadBatchSize to restrict the data sent over the wire to prevent the System.OutOfMemoryException, but I am still receiving it almost like the framework isn't disposing the old batch sets.

It works(syncs) successfully when I have say 4,000 rows of data, when I increase this data to 30,000 rows it fires this exception.

Any assistance would be helpful before I rip this framework open and try hack it out.

Cheers, Alex


Solution

  • There was an error in the framework that I manually corrected as it was open source.

    Now everything is syncing fine.