18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPLICATION DEVELOPMENT AND LICENSE INITIALIZATION<br />

• If the application was initialized with a license server and the extension<br />

functionality is not necessary for the application to function, the extensions<br />

can either be checked out directly after the application is initialized or checked<br />

out as the extension functionality is required. When the extension is checked<br />

in, the functionality should be disabled.<br />

Step 5: Shutdown<br />

Before an application is shut down, the AoInitialize object must be shut down.<br />

This ensures that any ESRI libraries that have been used are unloaded.<br />

WHY DOES INITIALIZATION FAIL?<br />

If a product or extension fails to check out, the license status indicates the reason<br />

for the failure. Licenses can fail to check out for the following reasons:<br />

• A product is not licensed.<br />

• A license is unavailable because it is already being used (Desktop Concurrent<br />

licenses only).<br />

• An unexpected license failure due to system administration problems.<br />

• The license is already initialized. An application is initialized with a product<br />

license for the duration of its life. It is possible to check with which product<br />

license an application has been initialized. For example, if an application<br />

containing some enterprise geodatabase editing has been initialized with an<br />

<strong>Engine</strong> Single Use with Geodatabase Update extension or an ArcEditor or<br />

ArcInfo license, the editing functionality can be enabled. If, however, the<br />

application has been initialized with an <strong>Engine</strong> Single Use or ArcView license,<br />

the editing functionality must be disabled.<br />

264 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!