2015-08-18 110 views
0

看起來位置API是遺留的(?)。它不工作的GetReport(...),但如果你設置RegisterForReport工作正常(......)我得到的錯誤是遵循Windows 10桌面應用程序的位置API C++

drivers\mobilepc\locationconvergence\api\winlegacyapi\dllapi\legacyapiimpltemplate.h(197)\LocationApi.dll!06552CA7: (caller: 06552D34) ReturnHr[PreRelease](1) tid(478) 8007139F The group or resource is not in the correct state to perform the requested operation. 
    [CLocationApiImplTemplate<class CLegacyPositionRequest,&struct __s_GUID const _GUID_e4e915a9_8344_4f88_9326_2adc071d4ff6>::GetReportInterval(!m_fRegistered)] 
SalesMan::AGW_CLASS::AGWLocationWin8::GetLocation> HR=8007139F 
SalesMan::AGW_CLASS::AGWLocationWin8::GetLocation> reportInterval=0 
drivers\mobilepc\locationconvergence\api\winlegacyapi\dllapi\legacyapiimpltemplate.h(158)\LocationApi.dll!06554401: (caller: 06554448) ReturnHr[PreRelease](2) tid(478) 800700E8 The pipe is being closed. 
    [CLocationApiImplTemplate<class CLegacyPositionRequest,&struct __s_GUID const _GUID_e4e915a9_8344_4f88_9326_2adc071d4ff6>::GetReport(m_pLatLongReport == nullptr)] 
drivers\mobilepc\locationconvergence\api\winlegacyapi\dllapi\legacypositionrequest.cpp(80)\LocationApi.dll!06554469: (caller: 06552BF2) ReturnHr[PreRelease](3) tid(478) 800700E8 The pipe is being closed. 
    [CLegacyPositionRequest::GetReport(__super::GetReport(ReportType, ppLocationReport))] 

我必須在這裏說RequestPermissions(...)工作正常並返回OK。 Windows 8.1上的相同應用程序正常工作。 任何人有任何想法?

預先感謝您 喬治

回答

0

我通過實現事件驅動的位置報告繞過這個問題。 可能Windows 10初始化速度比Windows 8慢,因爲硬件是相同的。我給它一個3秒的報告間隔並報告回去的經緯度

George

相關問題