dial-up connection closed

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jlund
Posts: 22
Joined: Wed 17 Nov 2004 18:50

dial-up connection closed

Post by jlund » Tue 22 Sep 2009 08:23

Hi

I am having this weird problem.

If I connect to my company network using a 3-modem on my laptop, and run my program against a MySQL database, the connection is dropped when I close my program.

The modem connects again within 30 seconds, but I lose my SSL connection.

If I run in the IDE (Delphi 6), the connection is dropped if I close my program normally, but not if I terminate using Ctrl-F2.

The problem also existed when I was using MyDAC.

Jens Lund

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 22 Sep 2009 08:56

Please, try to execute the following code (you should add the CRVioTcp unit to your uses clause to compile it):

Code: Select all

var
  tcp: TCRVioTcp;
  buf: string;
begin
  tcp := TCRVioTcp.Create('localhost', 3306);
  try
     tcp.Connect;
     SetLength(buf, 64);
     tcp.Read(PAnsiChar(buf), 0, Length(buf));
     sleep(1000);
     tcp.Close;
  finally
    tcp.Free;
  end;
end;
Check, if after executing this code the problem is arised.

jlund
Posts: 22
Joined: Wed 17 Nov 2004 18:50

Post by jlund » Wed 21 Oct 2009 21:54

Hi

That doesn't drop the connection

/Jens

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 26 Oct 2009 11:19

I can not reproduce the problem.
Please make sure this problem is connected with UniDAC, and not with third-party components.
Try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Post Reply