<?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 How to release floating license without closing application? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242502#M6282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a .Net service that periodically needs to open a file geodatabase, do some processing, and then close the fgdb.&amp;nbsp; After the fgdb is closed, I want to release the license so that similar services running on other machines can grab the license for its process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard documented steps that I have implemented:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RuntimeManager.Bind(ProductCode.EngineOrDesktop);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeAdvanced);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(process FGDB here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit.Shutdown();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Shutdown() is called, the license manager shows the machine still has the license checked out.&amp;nbsp; The only way to get it to release the license is to stop the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to release the license back to the license manager without having to close the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 15:50:11 GMT</pubDate>
    <dc:creator>CraigStephens1</dc:creator>
    <dc:date>2016-08-08T15:50:11Z</dc:date>
    <item>
      <title>How to release floating license without closing application?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242502#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a .Net service that periodically needs to open a file geodatabase, do some processing, and then close the fgdb.&amp;nbsp; After the fgdb is closed, I want to release the license so that similar services running on other machines can grab the license for its process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard documented steps that I have implemented:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RuntimeManager.Bind(ProductCode.EngineOrDesktop);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit = new AoInitializeClass();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeAdvanced);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(process FGDB here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aoInit.Shutdown();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Shutdown() is called, the license manager shows the machine still has the license checked out.&amp;nbsp; The only way to get it to release the license is to stop the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to release the license back to the license manager without having to close the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242502#M6282</guid>
      <dc:creator>CraigStephens1</dc:creator>
      <dc:date>2016-08-08T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to release floating license without closing application?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242503#M6283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know this is the way it works and it is not a bug...&lt;/P&gt;&lt;P&gt;The way around is to write your ArcObject code in a different executable and run it from the main program (system call).&lt;/P&gt;&lt;P&gt;You can send parameters or create a file with information that the other executable will read when it starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 04:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242503#M6283</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-08-09T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to release floating license without closing application?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242504#M6284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mody.&amp;nbsp; That's what I was afraid of... "the way it works".&amp;nbsp; It seems like this would be a relatively simple thing for Esri to address since it appears to be an open TCP connection that is keeping the product license checked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving the ArcObject code into a different executable is intriguing and probably worth pursuing.&amp;nbsp; Will make for an interesting team discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 14:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-release-floating-license-without-closing/m-p/242504#M6284</guid>
      <dc:creator>CraigStephens1</dc:creator>
      <dc:date>2016-08-09T14:02:49Z</dc:date>
    </item>
  </channel>
</rss>

