Windows应用商店应用程序c#使用带有路由的bing地图sdk崩溃
我在windows应用商店应用程序中使用bing地图SDK时,windows.ui.xaml.dll中出现了一个错误,这让我苦苦挣扎了好几天。只有当地图上显示了从a到B的路线,并且地图上的当前位置每秒更新一次时,才会发生此错误。未显示路由时,尚未发生错误 调试转储文件时,出现以下错误: **线程试图读取或写入其没有相应访问权限的虚拟地址**Windows应用商店应用程序c#使用带有路由的bing地图sdk崩溃,c#,C#,我在windows应用商店应用程序中使用bing地图SDK时,windows.ui.xaml.dll中出现了一个错误,这让我苦苦挣扎了好几天。只有当地图上显示了从a到B的路线,并且地图上的当前位置每秒更新一次时,才会发生此错误。未显示路由时,尚未发生错误 调试转储文件时,出现以下错误: **线程试图读取或写入其没有相应访问权限的虚拟地址** 错误代码:0xC0000005访问冲突 调用堆栈: Windows.UI.Xaml.dll!SolidColorBrushClone::SetValue()
错误代码:0xC0000005访问冲突 调用堆栈: Windows.UI.Xaml.dll!SolidColorBrushClone::SetValue()未知 Windows.UI.Xaml.dll!CDependencyObject::UpdateEffectiveValue()未知 Windows.UI.Xaml.dll!CAnimation::DoAnimationValueOperation()未知 Windows.UI.Xaml.dll!Canitation::UpdateAnimation()未知 Windows.UI.Xaml.dll!CTimeline::ComputeTestImpl()未知 Windows.UI.Xaml.dll!CTimeline::ComputeState()未知 Windows.UI.Xaml.dll!CStoryboard::ComputeTestImpl()未知 Windows.UI.Xaml.dll!CHardwareCompositor::TickIndependentianimations()未知 Windows.UI.Xaml.dll!CompositorScheduler::RenderThreadFrame()未知 Windows.UI.Xaml.dll!CompositorScheduler::RenderThreadMain(void)未知 Windows.UI.Xaml.dll!CompositorScheduler::RenderThreadMainStatic(无符号字符*)未知 内核32.dll@BaseThreadInitThunk@12()未知 ntdll.dll_RtlUserThreadStart()未知 ntdll.dll_RtlUserThreadStart@8()未知` 更新我的职位的代码:
private async void UpdateMyPosition(Geocoordinate coordinates, bool setView = false)
{
try
{
await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
try
{
MyLocation = new Location()
{
Latitude = coordinates.Point.Position.Latitude,
Longitude = coordinates.Point.Position.Longitude
};
this.MyPosLayer.Children.Clear();
AddPushpin(MyLocation, "", "", this.MyPosLayer, template: this.Resources["MyPositionPushpin"] as ControlTemplate);
if (setView)
{
double zoomLevel = (this.singleRoute == null) ? 14 : 18;
if (this.TargetsMap.ZoomLevel < zoomLevel)
zoomLevel = TargetsMap.ZoomLevel;
TargetsMap.SetView(MyLocation, zoomLevel);
}
}
catch (Exception exc)
{
Log.WriteLog(exc.ToString());
}
});
}
}
private async void UpdateMyPosition(地理坐标坐标,bool setView=false)
{
尝试
{
等待.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal,()=>
{
尝试
{
MyLocation=新位置()
{
纬度=坐标.Point.Position.Latitude,
经度=坐标.点.位置.经度
};
this.MyPosLayer.Children.Clear();
AddPushpin(MyLocation,“,”,this.MyPosLayer,模板:this.Resources[“MyPositionPushpin”]作为控制模板);
如果(设置视图)
{
双zoomLevel=(this.singleRoute==null)?14:18;
if(this.TargetsMap.ZoomLevel
在不同硬件的不同机器上没有用户交互的情况下发生错误。
不幸的是,我无法捕获异常,因为它发生在windows.ui.xaml.dll中。
我使用的是bing地图上最新版本的SDK
应用程序崩溃文件夹中有triagedump.dmp和memory.hdmp,它们显示相同的错误
有没有人经历过类似的错误?或者有人有什么建议吗
谢谢