locked
Start Sync on Thread RRS feed

  • Question

  • Using Ado.Net Sync Services V1, sync SQLCE to a SQL2005 db. Sync works fine, but the UI never gets updated with the progress items (WPF).
    I was trying to move this to a separate thread, but have not been able to achieve this.

    I have tried the following
    1. Thread thread = new Thread(new ThreadStart(syncAgent.Synchronize) << Can't seem to create the client connection
    2. Create a SyncManger where the SyncAgent is created on another thread << UI updates but sync doesnt happen
    3. A BackgroundWorker thread. UI Updates, no sync.
    4. a BeginInvoke()  based thread, no luck here either.
    5. WPF Dispatcher() thread.

    I tried searching this forum, thinking that this must have been addressed before, but alas I could not find a solution.

    Any examples out there ?

    Again, the sync is just fine on the UI thread, but the UI does't update.
    Thanks
    Larry
    Thursday, October 8, 2009 2:28 PM