<?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 Access InMemoryWorkspace from background thread in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/access-inmemoryworkspace-from-background-thread/m-p/305464#M7942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you access an inmemoryworkspace created in the main thread from a background thread? (ArcGIS 9.3.1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works on the main thread, but throws an error : Object reference not set to an instance of an object, when trying to do this in the background thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; IWorkspaceFactory workspaceFactory = new InMemoryWorkspaceFactoryClass(); 
 IWorkspace wrkspc = workspaceFactory.OpenFromFile((string)hashtable["workspace"], 0);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to access this data inmemory instead of writing to a scratch workspace if possible. Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 23:40:13 GMT</pubDate>
    <dc:creator>AmyRamsdell</dc:creator>
    <dc:date>2011-10-12T23:40:13Z</dc:date>
    <item>
      <title>Access InMemoryWorkspace from background thread</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/access-inmemoryworkspace-from-background-thread/m-p/305464#M7942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you access an inmemoryworkspace created in the main thread from a background thread? (ArcGIS 9.3.1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works on the main thread, but throws an error : Object reference not set to an instance of an object, when trying to do this in the background thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; IWorkspaceFactory workspaceFactory = new InMemoryWorkspaceFactoryClass(); 
 IWorkspace wrkspc = workspaceFactory.OpenFromFile((string)hashtable["workspace"], 0);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to access this data inmemory instead of writing to a scratch workspace if possible. Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 23:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/access-inmemoryworkspace-from-background-thread/m-p/305464#M7942</guid>
      <dc:creator>AmyRamsdell</dc:creator>
      <dc:date>2011-10-12T23:40:13Z</dc:date>
    </item>
  </channel>
</rss>

