Hi Darlene,
I tried to reproduce with the following code against ArcGIS Runtime SDK for .NET 10.2.5.857 (nuget package) but I am finding these issues instead (no crash)
M-aware point returns empty result on hittest.
M-aware line do not render.
Could you maybe try the following code with your services?
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:MapView x:Name="MyMapView">
<esri:Map>
<esri:ArcGISTiledMapServiceLayer ServiceUri="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"/>
<esri:FeatureLayer ID="Line">
<esri:ServiceFeatureTable ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/1" />
</esri:FeatureLayer>
<esri:FeatureLayer ID="Point" >
<esri:ServiceFeatureTable ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"/>
</esri:FeatureLayer>
<esri:FeatureLayer ID="LineHasM">
<esri:ServiceFeatureTable ServiceUri="..." />
</esri:FeatureLayer>
<esri:FeatureLayer ID="PointHasM">
<esri:ServiceFeatureTable ServiceUri="..." />
</esri:FeatureLayer>
</esri:Map>
</esri:MapView>
<Button VerticalAlignment="Top" HorizontalAlignment="Center" Content="Select" Click="Select_Click"/>
</Grid>
private async void Select_Click(object sender, RoutedEventArgs e)
{
string message = null;
try
{
foreach (var layer in MyMapView.Map.Layers.OfType<FeatureLayer>())
{
if (layer.SelectedFeatureIDs.Any())
layer.UnselectFeatures(layer.SelectedFeatureIDs.ToArray());
var geometry = await MyMapView.Editor.RequestPointAsync();
var ids = await layer.HitTestAsync(MyMapView, MyMapView.LocationToScreen(geometry));
if (ids != null && ids.Any())
layer.SelectFeatures(ids);
}
}
catch (TaskCanceledException ex)
{
}
catch (Exception ex)
{
message = ex.Message;
}
if (!string.IsNullOrWhiteSpace(message))
MessageBox.Show(message);
}
Thanks.