<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: When I programatically select from a FeatureLayer anytime ofter selecting on the map, The application freezes. in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-i-programatically-select-from-a-featurelayer/m-p/1708502#M13575</link>
    <description>&lt;P&gt;So...&amp;nbsp; I tried to ClearSelection using&amp;nbsp;await QueuedTask.Run(() =&amp;gt; MapView.Active.Map.ClearSelection());&lt;/P&gt;&lt;P&gt;This, too, froze the application.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2026 20:48:20 GMT</pubDate>
    <dc:creator>EugeneStaten</dc:creator>
    <dc:date>2026-06-16T20:48:20Z</dc:date>
    <item>
      <title>When I programatically select from a FeatureLayer anytime ofter selecting on the map, The application freezes.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-i-programatically-select-from-a-featurelayer/m-p/1708485#M13574</link>
      <description>&lt;P&gt;I have a class that wraps a FeatueLayer.&amp;nbsp; This is to make sure I can make MCT calls organically from other code.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public class FeatureLayerWrapper {
     FeatureLayerWrapper(FeatureLayer featLayer){
      RawfeatureLayer = featLayer;
    }

    public FeatureLayer RawfeatureLayer { get; private set;}

    public async Task&amp;lt;Selection&amp;gt; Select(
    QueryFilter queryFilter = null,
    SelectionCombinationMethod method = SelectionCombinationMethod.New,
    TimeRange time = null,
    RangeExtent range = null,
    CIMFloorFilterSettings floor = null)
    {
        return await QueuedTask.Run(() =&amp;gt; FeatureLayer.Select(queryFilter,  method, time, range, floor));
    }    
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Select method works, until I first select a few features via map selection, and then try to AND to the selection via a QueryFilter:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string filter = SelectFilter(featureLayer.Prefix);
if (!string.IsNullOrEmpty(filter))
{
    if (featureLayer.Prefix.ToUpper().Equals("SIM"))
    {
        await featureLayer.Select(new QueryFilter(){WhereClause = "\"State\" &amp;lt;&amp;gt; 'Merged'", SelectionCombinationMethod.And);
    }
    else {
        await featureLayer.Select(new QueryFilter(){WhereClause = filter}, SelectionCombinationMethod.And);
    }
    MapView.Active.RedrawAsync(true);
    filterSelected = true;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application freezes at this point.&amp;nbsp; Its not just AND, its any other programatic Selection. post map selection, that&amp;nbsp; sinks into a black hole, never to return.&lt;/P&gt;&lt;P&gt;So... Is there a map selection lock, I must disengage or is this a bug, or is it something else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 18:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-i-programatically-select-from-a-featurelayer/m-p/1708485#M13574</guid>
      <dc:creator>EugeneStaten</dc:creator>
      <dc:date>2026-06-16T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: When I programatically select from a FeatureLayer anytime ofter selecting on the map, The application freezes.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-i-programatically-select-from-a-featurelayer/m-p/1708502#M13575</link>
      <description>&lt;P&gt;So...&amp;nbsp; I tried to ClearSelection using&amp;nbsp;await QueuedTask.Run(() =&amp;gt; MapView.Active.Map.ClearSelection());&lt;/P&gt;&lt;P&gt;This, too, froze the application.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 20:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/when-i-programatically-select-from-a-featurelayer/m-p/1708502#M13575</guid>
      <dc:creator>EugeneStaten</dc:creator>
      <dc:date>2026-06-16T20:48:20Z</dc:date>
    </item>
  </channel>
</rss>

