Windows Store app is crashing on Sync web service calls. RRS feed

  • Question

  • i am developing a windows store app which is using Synchronuos Web service calls as it is required.

    But While webservice call is going on if try to touch on Screen that hangs application and it is crashing application.

    How to tackle this situation. can we put Loading images while Sync web service call is going on

    Friday, March 28, 2014 10:32 AM


  • hi,

    u can use promise which will handle async operations as below:

    WinJS.xhr({url:"webservice url"}).then(

    function onComplete(){



    function onError(){



    //show ur loading images here:


    Hope this will help.

    • Marked as answer by Anne Jing Friday, April 4, 2014 8:06 AM
    Friday, March 28, 2014 12:33 PM