【发布时间】:2020-03-09 04:37:50
【问题描述】:
我正在尝试从 Quickstart: Create a HoloLens app with Azure Spatial Anchors, in C++/WinRT and DirectX 运行 Azure Spatial Anchors 示例项目。
它会构建,但在运行时我在第一次更新时收到一个空指针异常。调用堆栈如下所示:
SampleHoloLens.exe!winrt::impl::consume_Windows_Perception_Spatial_ISpatialLocatorAttachedFrameOfReference<winrt::Windows::Perception::Spatial::ISpatialLocatorAttachedFrameOfReference>::GetStationaryCoordinateSystemAtTimestamp(const winrt::Windows::Perception::PerceptionTimestamp & timestamp) Line 500 C++
SampleHoloLens.exe!SampleHoloLens::SampleHoloLensMain::Update() Line 186 C++
SampleHoloLens.exe!SampleHoloLens::AppView::Run() Line 95 C++
SampleHoloLens.exe!winrt::impl::produce<SampleHoloLens::AppView,winrt::Windows::ApplicationModel::Core::IFrameworkView>::Run() Line 920 C++
这在发布和调试中都会发生。如自述文件中所述,我正在本地机器的 x86 版本中构建和运行。我目前使用的是 HL1。
【问题讨论】: