on 02-03-2016 11:44 PM
Greetings,
First of all I'm using ADS 11, Delphi XE7. Here's my problem in a nutshell.
Create a delphi application and place 2 buttons.
OnClick of Button1
var
conn1 : TAdsConnection;
begin
conn1 := TAdsConnection.Create(nil);
try
conn1.Username := 'ADSSYS';
conn1.Password := 'yourdbpassword';
conn1.ConnectPath := '\\SERVER\CON1\FLDatabase.add';
conn1.IsConnected := True;
finally
conn1.Free;
end;
OnClick of Button2
var
conn2 : TAdsConnection;
begin
conn2 := TAdsConnection.Create(nil);
try
conn2.Username := 'ADSSYS';
conn2.Password := 'yourdbpassword';
conn2.ConnectPath := '\\SERVER\CON1\FLDatabase.add';
conn2.IsConnected := True;
finally
conn2.Free;
end;
Now start the program. Press Button1, everything connects, and we're good to go.
Now go into your firewall settings and create two Outbound Block rules on port 6262 TCP and UDP.
Now press Button2 and you should get the expected 6420 error.
Now disable the Block rules you created in your firewall.
Now press Button1 or Button2 and you'll always get 6420 even though communication is back up and good to go. Restarting the program is the only solution I've found that works. But this isn't feasible if you're running your software as middleware. It needs to be able to come back from these types of errors.
Any ideas?
Thanks for your time,
Dusten
Dustin,
By default the Advantage client will cache all connection (6000 class) errors. This was done so applications that made multiple connections would not waste a lot of time retrying connections. The default behavior can be changed by adding RETRY_ADS_CONNECTS=1 under the [SETTINGS] heading in the client side ADS.INI file.
This will force the client to retry the connection even if a connection error was received.
Here is a link to the help file that explains the various ADS.INI settings: http://devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html?master_ads_ini_file_support...
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.