# Crash in handling map click

**URL:** <https://community.thinkgeo.com/t/crash-in-handling-map-click/12391>\
**Category:** WPF\
**Created:** [April 14, 2026, 7:38am UTC](https://community.thinkgeo.com/t/crash-in-handling-map-click/12391 "2026-04-14T07:38:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simo\_Karjalainen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@Simo\_Karjalainen](https://community.thinkgeo.com/u/Simo_Karjalainen)\
**Post date:** [April 14, 2026, 7:38am UTC](https://community.thinkgeo.com/t/crash-in-handling-map-click/12391/1 "2026-04-14T07:38:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [April 15, 2026, 3:45am UTC](https://community.thinkgeo.com/t/crash-in-handling-map-click/12391/2 "2026-04-15T03:45:35Z")

</div>

Hi Simo,

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

Thanks,  
Ben
