POST
|
Thanks for the reply. The SET_VERSION macro calls LoadVersion but fails at the client. We have solved the problem but enumerating licenses using GetVersions and then explicitly calling one of the returned licenses. Why this works is a complete mystery (since the returned license is the same as what was passed through anyway)?
... View more
06-30-2012
01:17 PM
|
0
|
0
|
234
|
POST
|
Hi, We are having a licensing issue. On my dev comuter, the code works fine. On the client's computer, it fails to obtain a license. We both have the same software installed (ArcGis 10.0) and both are Windows 7 64-bit. We have tried both single user and floating licenses without luck. We have run out of things to try. Any help would be really appreciated. Cheers, Michael Our simple test app is: #include "stdafx.h" #define ARCGIS_VERSION 10.0 #include <iostream> #include <ArcSDK.h> bool InitAttemptWithoutExtension(esriLicenseProductCode product) { IAoInitializePtr ipInit(CLSID_AoInitialize); HRESULT hr =ipInit->InitializedProduct(&product); esriLicenseStatus status = esriLicenseFailure; hr = ipInit->Initialize(product, &status); return (status == esriLicenseCheckedOut); } int _tmain(int argc, _TCHAR* argv[]) { printf("License test has started.\n"); // ::AoInitialize(NULL); CoInitialize(NULL); ESRI_SET_VERSION(esriArcGISEngine,ARCGIS_VERSION) //ESRI_SET_VERSION(esriArcGISEngine,ARCGIS_VERSION); IAoInitializePtr ipInit(CLSID_AoInitialize); // ShutdownApp(); esriLicenseExtensionCode license = (esriLicenseExtensionCode)0; if (license == 0) { // Try to init as engine, then engineGeoDB, then ArcView, // then ArcEditor, then ArcInfo if (!InitAttemptWithoutExtension(esriLicenseProductCodeEngine)) if (!InitAttemptWithoutExtension(esriLicenseProductCode::esriLicenseProductCodeEngineGeoDB)) if (!InitAttemptWithoutExtension(esriLicenseProductCodeArcView)) if (!InitAttemptWithoutExtension(esriLicenseProductCodeArcEditor)) if (!InitAttemptWithoutExtension(esriLicenseProductCodeArcInfo)) { printf("License test has failed.\n"); while(1); return 0; } } printf("License test is successful.\n"); while(1); return 0; }
... View more
06-21-2012
04:14 PM
|
0
|
2
|
3037
|
POST
|
Thanks for the lead. It is not a migration, but one of ESRI's V10.0 samples. However, your suggestion led to this bug (http://support.esri.com/en/bugs/nimbus/TklNMDYxNjUx) regarding ARCGIS_VERSION not be defined. All resolved now.
... View more
03-08-2012
05:02 AM
|
0
|
0
|
233
|
POST
|
A bit more info. This sample code is where it fails: bool InitAttemptWithoutExtension(esriLicenseProductCode product) { IAoInitializePtr ipInit(CLSID_AoInitialize); esriLicenseStatus status = esriLicenseFailure; HRESULT hr = ipInit->Initialize(product, &status); return (status == esriLicenseCheckedOut); } The HR result says "Application can not be run more than once". There are no other esri apps running (or other visual studio instances). I even rebooted the machine to make sure that there were no background processes. It is a single use license. It has us stumped!
... View more
03-08-2012
04:32 AM
|
0
|
0
|
233
|
POST
|
Hi, The create_shapefile C++ example fails to run with these messages: Could not bind to a valid ArcGIS installation. Could not bind to a valid ArcGIS installation. Could not bind to a valid ArcGIS installation. Could not bind to a valid ArcGIS installation. Could not bind to a valid ArcGIS installation. The engine and SDk have been installed and authorised without any problem. ArcGIS desktop runs fine without complaining about a license, just the ArcObject runtime. This is stopping us from working so any ideas would be appreciated. Michael
... View more
03-08-2012
03:33 AM
|
0
|
3
|
2030
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|