<?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 Multithreading for responsive WPF in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithreading-for-responsive-wpf/m-p/633707#M17077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a VB.Net WPF Application using the ArcGIS SDK for version 10.1. I have a long running process working on our data, and I want to keep a responsive UI during this process in WPF. I seem to be stuck between a rock and a hard place as any feature that I add that doesn't freeze the UI causes the performance to drop dramatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No multi-threading - Freezes UI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoke Delegate - Freezes UI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Background Worker - Doesn't work as it tries to invoke ArcGIS in MTA mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;New STA Thread - Causes performance to drop dramatically (up to 50 times as long to execute something as without multi-threading).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I read online I could add "&amp;lt;STAThread()&amp;gt;" to the Main in a console application to speed it up, but there is no "Main" in the WPF as it works more like a form. Adding that to all the relevant subs and functions also did nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get both a responsive UI and fast executing ArcObjects? If so, how would I do that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 13:04:43 GMT</pubDate>
    <dc:creator>ThomasBruestle</dc:creator>
    <dc:date>2013-12-03T13:04:43Z</dc:date>
    <item>
      <title>Multithreading for responsive WPF</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithreading-for-responsive-wpf/m-p/633707#M17077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a VB.Net WPF Application using the ArcGIS SDK for version 10.1. I have a long running process working on our data, and I want to keep a responsive UI during this process in WPF. I seem to be stuck between a rock and a hard place as any feature that I add that doesn't freeze the UI causes the performance to drop dramatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No multi-threading - Freezes UI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoke Delegate - Freezes UI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Background Worker - Doesn't work as it tries to invoke ArcGIS in MTA mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;New STA Thread - Causes performance to drop dramatically (up to 50 times as long to execute something as without multi-threading).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I read online I could add "&amp;lt;STAThread()&amp;gt;" to the Main in a console application to speed it up, but there is no "Main" in the WPF as it works more like a form. Adding that to all the relevant subs and functions also did nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get both a responsive UI and fast executing ArcObjects? If so, how would I do that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 13:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/multithreading-for-responsive-wpf/m-p/633707#M17077</guid>
      <dc:creator>ThomasBruestle</dc:creator>
      <dc:date>2013-12-03T13:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multithreading for responsive WPF</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithreading-for-responsive-wpf/m-p/633708#M17078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One solution is to move the processing to another process.&amp;nbsp; Doing that will keep your UI responsive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a common computing pattern to convert multi-threading problems into multi-process problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 21:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/multithreading-for-responsive-wpf/m-p/633708#M17078</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-03T21:34:04Z</dc:date>
    </item>
  </channel>
</rss>

