小编Dav*_*ave的帖子

WP7 - Bing Maps - 如何处理MapItemsControl上的多个图钉? - 目前崩溃的应用程序

当我拖动或缩放时,我的bing地图应用程序最终会崩溃.在模拟器和设备上测试.

我已经安装了十月更新.

MapItemsControl绑定到ObservableCollection.应用程序启动时,引脚已加载并可见.

在排除故障时,我确定如果地图上的图钉位于相同的一般区域,应用程序不会崩溃.例,

addPin("40.78184126814031", "-73.97712707519532");    
addPin("40.74569634433956", "-73.96717071533204");    
addPin("40.7117682299881", "-74.0125322341919");    
addPin("40.75777392583087", "-73.96950960159302");
Run Code Online (Sandbox Code Playgroud)

但如果引脚展开 - 应用程序在用户放大一个特定引脚和/或拖动地图时崩溃.例,

addPin("42.35960626034072", "-71.09212160110473");    
addPin("51.388066116760086", "30.098590850830067");    
addPin("48.17972265679143", "11.54910385608672");    
addPin("40.28802528051879", "-76.65668606758117");
Run Code Online (Sandbox Code Playgroud)

不确定项目代码是否必要 - 我假设有一些我不知道的概念.

任何建议 - 我都是耳朵.下面的堆栈跟踪.

谢谢

Unspecified error
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)    
   at MS.Internal.XcpImports.UIElement_HitTestPoint(UIElement element, Point ptHit)    
   at System.Windows.UIElement.HitTest(Point point)    
   at System.Windows.Media.VisualTreeHelper.FindElementsInHostCoordinates(Point intersectingPoint, UIElement subtree)    
   at Microsoft.Phone.Controls.Maps.Core.TouchHelper.<InputHitTest>d__0.MoveNext()    
   at Microsoft.Phone.Controls.Maps.Core.TouchHelper.HitTestAndRaiseDownEvent(UIElement root, TouchPoint touchPoint)    
   at Microsoft.Phone.Controls.Maps.Core.TouchHelper.TouchFrameReported(Object sender, TouchFrameEventArgs e)    
   at System.Windows.Input.Touch.OnTouch(Object sender, TouchFrameEventArgs e)    
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
Run Code Online (Sandbox Code Playgroud)

最好包括代码 - 运行此代码并放大崩溃应用程序 - 谢谢

PINDATA课程 …

bing-maps windows-phone-7

2
推荐指数
1
解决办法
3692
查看次数

标签 统计

bing-maps ×1

windows-phone-7 ×1