<?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: Initializing ArcObjects in a DLL in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/initializing-arcobjects-in-a-dll/m-p/293512#M7625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some overhead with opening and closing workspace.&amp;nbsp; You program might take longer to execute depending on how many times you're doing this.&amp;nbsp; I like to open and close one time and get what I need to memory for further processing.&amp;nbsp; The same applies to AOInitialize because you're hitting the license server so more overhead.&amp;nbsp; You can probably tell I am in the camp of doing these only once &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 19:40:33 GMT</pubDate>
    <dc:creator>SteveFang</dc:creator>
    <dc:date>2011-03-04T19:40:33Z</dc:date>
    <item>
      <title>Initializing ArcObjects in a DLL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/initializing-arcobjects-in-a-dll/m-p/293511#M7624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a stand-alone program that reads data from various spatial data formats, one of which is ESRI geodatabases.&amp;nbsp; All of the code that accesses ESRI geodatabases resides in its own DLL.&amp;nbsp; When the client application needs to read a geodatabase, the DLL will perform the following steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) call IAoInitialize::Initialize() to get a license &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) open the geodatabase workspace &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) read the data &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) close the workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) call IAoInitialize::Shutdown().&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Over the course of a user's session, Initialize() and Shutdown() are likely to be called several times each (in pairs).&amp;nbsp; Is this a reasonable approach, or would it be better to ensure that Initialize() and Shutdown() are called exactly one time each?&amp;nbsp; What are the possible consequences, if any, of calling Initialize() and Shutdown() more than once each.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 19:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/initializing-arcobjects-in-a-dll/m-p/293511#M7624</guid>
      <dc:creator>BobCave</dc:creator>
      <dc:date>2011-03-03T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing ArcObjects in a DLL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/initializing-arcobjects-in-a-dll/m-p/293512#M7625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some overhead with opening and closing workspace.&amp;nbsp; You program might take longer to execute depending on how many times you're doing this.&amp;nbsp; I like to open and close one time and get what I need to memory for further processing.&amp;nbsp; The same applies to AOInitialize because you're hitting the license server so more overhead.&amp;nbsp; You can probably tell I am in the camp of doing these only once &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 19:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/initializing-arcobjects-in-a-dll/m-p/293512#M7625</guid>
      <dc:creator>SteveFang</dc:creator>
      <dc:date>2011-03-04T19:40:33Z</dc:date>
    </item>
  </channel>
</rss>

