AnsweredAssumed Answered

How to release floating license without closing application?

Question asked by cstephens0829 on Aug 8, 2016
Latest reply on Aug 9, 2016 by cstephens0829

I have a .Net service that periodically needs to open a file geodatabase, do some processing, and then close the fgdb.  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.

 

The standard documented steps that I have implemented:

RuntimeManager.Bind(ProductCode.EngineOrDesktop);

aoInit = new AoInitializeClass();

aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeAdvanced);

...

(process FGDB here)

...

aoInit.Shutdown();

 

After Shutdown() is called, the license manager shows the machine still has the license checked out.  The only way to get it to release the license is to stop the service.

 

Is there any way to release the license back to the license manager without having to close the app?

Outcomes