locked
UI hangs when UI thread is free, and Composition Thread is busy RRS feed

  • Question

  • Hi all,

    I have created a application, which is all about media(Photos). Where I get 1000s of photos. I am doing some database operations inside Task.Run and downloading images, and assigning stream on UI thread.

    When I did profililing app, I found that my app is not responding when UI Thread is free, and Composition Thread is busy.

    Please check below profililing screenshot:

    Please advice me what to do?

    Thanks


    Pallam Madhukar Windows Phone Developer

    Friday, November 7, 2014 6:30 AM

All replies

  • Hi Pallam,

    Please check if you forgot to add await key word to some async method in Task.Run method. This will cause the thread hangs.

    I cannot say any other reason if you don’t post some code. If you still have questions about this issue, please upload code snippet or repro project to help reproduce.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Monday, November 10, 2014 1:52 AM
    Moderator
  • Is something in Composition thread invoke to UI thread ? 

    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

    Monday, November 10, 2014 3:38 AM