<?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: IActiveView.Output on a background thread in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227977#M5949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't check right now but it looks to me that isn't possible to use reference from on thread into another. IActiveView is reference to the ActiveView object. I don't have idea how to reuse object from another thread but SDK has something in case you didn't know. It seems to me like good way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/2c2d2655-a208-4902-bf4d-b37a1de120de.htm#callingAOFromAnotherThread"&gt;http://resources.esri.com/help/9.3/arcgisengine/dotnet/2c2d2655-a208-4902-bf4d-b37a1de120de.htm#callingAOFromAnotherThread&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Overhead in multi thread will slow whole thing and will make code more complex to maintain, are you sure this is the right way or maybe requirement is not suited for ArcMap Desktop rather some web service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 11:37:13 GMT</pubDate>
    <dc:creator>DubravkoAntonic</dc:creator>
    <dc:date>2011-08-16T11:37:13Z</dc:date>
    <item>
      <title>IActiveView.Output on a background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227974#M5946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to output a part of the map's active view but without stopping the current UI thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using C# and ArcGIS 9.3.1 (sp1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried doing it in a background thread but this is the exception I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;COMException was unhandled: "The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way of outputing a bitmap from the map in background?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 07:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227974#M5946</guid>
      <dc:creator>ItaiBar-Haim</dc:creator>
      <dc:date>2011-07-07T07:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: IActiveView.Output on a background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227975#M5947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same problem. When I try to export an image of the active view after a refresh, I have the COMException that says the data is not yet available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you solve the problem??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 08:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227975#M5947</guid>
      <dc:creator>VictorAparicio</dc:creator>
      <dc:date>2011-08-16T08:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: IActiveView.Output on a background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227976#M5948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I didn't really solve it, as I still can't access it from multiple threads simultaneously. I made sure I only access it from one thread at a time (and generally - from one thread only, which is not the UI thread.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 10:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227976#M5948</guid>
      <dc:creator>ItaiBar-Haim</dc:creator>
      <dc:date>2011-08-16T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: IActiveView.Output on a background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227977#M5949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't check right now but it looks to me that isn't possible to use reference from on thread into another. IActiveView is reference to the ActiveView object. I don't have idea how to reuse object from another thread but SDK has something in case you didn't know. It seems to me like good way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/2c2d2655-a208-4902-bf4d-b37a1de120de.htm#callingAOFromAnotherThread"&gt;http://resources.esri.com/help/9.3/arcgisengine/dotnet/2c2d2655-a208-4902-bf4d-b37a1de120de.htm#callingAOFromAnotherThread&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Overhead in multi thread will slow whole thing and will make code more complex to maintain, are you sure this is the right way or maybe requirement is not suited for ArcMap Desktop rather some web service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 11:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227977#M5949</guid>
      <dc:creator>DubravkoAntonic</dc:creator>
      <dc:date>2011-08-16T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: IActiveView.Output on a background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227978#M5950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realized that my problem was caused because the map had not finished refreshing the annotation drawphase, so I solved it with a flag in the axMapControl OnAfterDraw&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 05:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iactiveview-output-on-a-background-thread/m-p/227978#M5950</guid>
      <dc:creator>VictorAparicio</dc:creator>
      <dc:date>2011-08-22T05:18:25Z</dc:date>
    </item>
  </channel>
</rss>

