ThinkGeo.com    |     Documentation    |     Premium Support

Crash in handling map click

Hi,

This kind of crash happened when map was clicked multiple times and application was switched to view where map was not visible:

System.InvalidOperationException: This Visual is not connected to a PresentationSource.
at System.Windows.Media.Visual.PointToScreen(Point point)
at ThinkGeo.UI.Wpf.MapViewBase.F0U=(Object sender ManipulationCompletedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source RoutedEventArgs args Boolean reRaised)

Maybe exception handling (or some checks if that PointToScreen API can be used) would be good to add to MapViewBase to avoid crash in this kind of case ?

Br, Simo

Hi Simo,

It’s fixed in the latest beta, please pull the latest v15.0.0-beta011 and have another try.

Thanks,
Ben

1 Like