Unhandled exception when using gestures inside Visual Studio 2017 Simulator

631
1
01-27-2018 10:16 AM
MauroCastaldo
New Contributor II

Trying to debug even the simple template app offered by ArcGIS Runtime .NET 100.2.0 in Visual Studio 2017 using the Simulator, it raises the following unhandled exception when clicking more then once in the GeoView with pan/zoom and rotation tools:

{System.NullReferenceException: Object reference not set to an instance of an object.
at Esri.ArcGISRuntime.UI.StoreDeviceInteractionHandler.ManipulationStarted(Object sender, ManipulationStartedRoutedEventArgs e)}

With this issue it's very hard to test an app using simulated touch gestures on a non touch enabled development environment.

Any suggestion?

Tags (2)
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

This looks like a Windows Simulator bug, as it's been reported by a lot of other users. I've reached out to Microsoft to get an update on this issue. I'm not even sure we can work around it - The touch events has some important properties we need to perform the gestures, and those are sometimes returning null on the simulator. The best we can do in the API is basically not execute the gesture if the value is null. That avoids the crash, but doesn't fix the problem.

0 Kudos