locked
getThumbnailAsync failing intermittently

    Question

  • Hi,

    As I can't get the associated application for a filetype, see:

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/225d7822-a429-4816-b4d5-408daf3db5ac/get-icon-of-associated-application?forum=winappswithnativecode

    I'm using getThumbnailAsync(ThumbnailMode::SingleItem, 100) but this fails intermittently on different files with a HRESULT of E_PENDING.  Is there any way I can avoid this? If not what are my options, reissuing the call etc.

    Thanks for the help

    Friday, February 6, 2015 10:44 AM

Answers

  • Hi Wantabeguitarboy,

    Generally speaking, this could be a environment issue instead of the coding issue, I guess even you provide the repro, we still cannot see the E_PENDING error.

    E_PENDING sounds like the data is unavailable while it required resource is used by other process, I would recommend you test the repro with another develop computer or close other applications on the current dev machine.

    --James


    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.

    Thursday, February 19, 2015 7:09 AM
    Moderator

All replies

  • Hi,

    What's meaning about fails intermittently on different files with a HRESULT of E_PENDING? Do you meand when you use getThumbnailAsync(ThumbnailMode::SingleItem, 100) on the same type of files, the thumbnails are different. If so, there is no wany to handle that.  For music file, if the file has album art, the thumbnail is the album art and uses the original aspect ratio of the file. Otherwise, the thumbnail is just an icon. You can see the link to get more information:

    https://msdn.microsoft.com/en-us/library/windows/apps/hh465350.aspx

    Best Wishes!


    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. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Sunday, February 8, 2015 3:59 AM
  • Hi,

    Thanks for the reply.

    To clarify: getThumbnailAsync occasionally throws an E_PENDING platform exception.  This is not specific to a particular file or file type.

    Interestingly I haven't seen this on Windows 10, only 8.1

    When this occurs I'm not sure what to do.  At present the file is shown without a thumbnail

    Thanks

     

    Sunday, February 8, 2015 5:35 PM
  • Hi,

    I cannot reproduce it. When I test in my computer. Everything is ok. Would you mind sharing a reproduce app to OneDrive so that I can test it.

    Best Wishes!


    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. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Monday, February 9, 2015 9:28 AM
  • Hi Anne,

    Unfortunately it make take some time to trim down my full product code into a reproducible solution.

    Can we not enable some logging instead?

    Thanks

    Wednesday, February 11, 2015 9:58 AM
  • Hi Wantabeguitarboy,

    Generally speaking, this could be a environment issue instead of the coding issue, I guess even you provide the repro, we still cannot see the E_PENDING error.

    E_PENDING sounds like the data is unavailable while it required resource is used by other process, I would recommend you test the repro with another develop computer or close other applications on the current dev machine.

    --James


    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.

    Thursday, February 19, 2015 7:09 AM
    Moderator