Any Network Connection problem to affect msconnection
Posted: Sat 26 Jan 2008 15:52
Hi.
I'm licenced user of SDAC.
After connection is lost due to any of network problems,
I get an error from MsConnection object,
while the code in a timer object is running.
The Code in timer object must run, if pc is connected.
But if connection is lost, MSConnection must try to connect.
To do this i used code below, but it doesn't work.
-----------------------------------------------------
FormCreate :
Msconnection1.Connect;
Timer1Timer:
if msconnection1.connected then
begin
......
......
.........
.............
end else msconnection1.connect;
------------------------------------------------------
What is the solution of this problem?
Does the timeout event cause this problem?
What should i do?
Regards.
I'm licenced user of SDAC.
After connection is lost due to any of network problems,
I get an error from MsConnection object,
while the code in a timer object is running.
The Code in timer object must run, if pc is connected.
But if connection is lost, MSConnection must try to connect.
To do this i used code below, but it doesn't work.
-----------------------------------------------------
FormCreate :
Msconnection1.Connect;
Timer1Timer:
if msconnection1.connected then
begin
......
......
.........
.............
end else msconnection1.connect;
------------------------------------------------------
What is the solution of this problem?
Does the timeout event cause this problem?
What should i do?
Regards.