Thema: Delphi Zugriff auf ADS Server

Einzelnen Beitrag anzeigen

Benutzerbild von joachimd
joachimd

Registriert seit: 17. Feb 2005
Ort: Weitingen
672 Beiträge
 
Delphi 10.4 Sydney
 
#14

AW: Zugriff auf ADS Server

  Alt 18. Aug 2023, 13:57
Wenn es mit dem ARC auf der Maschine geht:
Suche in der ADS Hilfe nach "ads.ini File Support"
Abschnitt Windows
Zitat:
In order for the ads.ini file to be used, it must be located in the application directory, the Windows directory, the Windows System directory, or the client's search path.

In addition, if an environment variable exists with the name adsini_path, that path will be used to locate the ads.ini file. This can be helpful when you do not want to modify the application’s search path, but still need the ads.ini file to exist in a directory multiple users have rights to (for example on Windows Vista installations). An application can often set the environment variable at run-time before calling any Advantage functions, which avoids the need to set a per-workstation environment variable.
Erstelle diese Umgebungsvariable und lasse sie auf das Verzeichnis des ARC zeigen (da dort ja eine funktionierende asds.ini liegt). Nimm aus Deinen Verbindungsparametern TCPIP raus - default ist UDP/IP.
Amn besten noch folgenden Eintrag in die ads.ini rein:
Zitat:
[SETTINGS]
RETRY_ADS_CONNECTS = 1
Ach so...nimm auch den Port aus dem Connection Path raus. Der ist ja in der ads.ini definiert.
Damit wird der Verbindungsfehler nicht gecached.
Joachim Dürr
Joachim Dürr Softwareengineering
http://www.jd-engineering.de
  Mit Zitat antworten Zitat