locked
How to prevent MediaCapture.CapturePhotoToStreamAsyn() from hanging? RRS feed

  • Question

  • There is an old thread related to this. MediaCapture.CapturePhotoToStreamAsyn() hangs immediately when an app is brought to the background.  This true at least on a Surface RT. I have two questions:

    1. Is there anything of MediaCapture that can be tested to determine whether calling CapturePhotoToStreamAsyn() will hang?
    2. Is there a way to make CapturePhotoToStreamAsyn() generate an exception instead of hanging?

    Hong

    Monday, February 3, 2014 12:46 PM

All replies

  • Hello Hong,

    Can you please reproduce the hang, wait about 15 seconds and then capture a mini-dump with full memory and heap information in it. Can you then please zip (not rar) it up and put it on your SkyDrive. Then please post a link to the file on SkyDrive here. I will download the file and do what I can to diagnose the problem.

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, February 4, 2014 12:57 AM
    Moderator
  • Hello James,

    Thanks a lot for looking into this.  Here is the zipped dump file.

    Though this issue is manageable, it is a major nuisance for the app. 


    Hong

    Tuesday, February 4, 2014 1:44 AM