none
IPortableDeviceProperties::GetValues blocking or taking a very long time? RRS feed

  • Question

  • Hi,

    I am developing an application that transfers files to and from an Android OS device using the Media Transfer Protocol (MTP) via the Windows Portable Device (WPD) API. Under certain conditions:
    - device disconnected
    - application running first
    - device fully powered on and connected via USB
    - application searches the device and removes a file in a folder
    - application writes a file
    - application searches the device for another file in a folder
    - the IPortableDeviceProperties::GetValues method will block and take a very long time to return (100 seconds vs milliseconds).  

    The call to IPortableDeviceProperties::GetValues has been called already for the object that we got the properties for.  It only seems to take a very long time to return for this specific case.  It does not take a long time to return for later file objects.

    Has anyone seen this issue?



    Wednesday, February 18, 2015 7:20 PM