ADS Re-connection

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

ADS Re-connection

Post by fraxzi »

Hello All,


I have this situation Using xHarbour 1.0b and ADS 8.1:

I successfully connected using AdsConnect60(....), something happend with my ADSL internet connection and my communication has been cutoff...

ADS generated '[6313] General communication failure' with that matter.

Now, connection resumed (somehow), inside my program, calls again the procedure to reconnect with the same parameter to AdsConnect60().... IT WONT CONNECT ANYMORE.


what I am trying to do is have auto reconnect with ads if the internet connection fails and resume again without the user restarting the program.


any help ADS expert....


regards,
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

I solved the issue on reconnection by adding the following to ADS.INI :idea:

[Settings]
RETRY_ADS_CONNECTS = 1



hope this helps others too.


Regards,
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Post by carlos vargas »

Thanks for the tips. :-)
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
Post Reply