TMyConnection, OnError and Pooling

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

TMyConnection, OnError and Pooling

Post by eduardosic » Sun 14 Jun 2009 03:10

Hi Devart. i found a strange behavior.

in TMyConnnection i set the event OnError:

Code: Select all

   if E.ErrorCode = 2003 then begin
    Fail := False;
    ShowMessage( 'The Application can not connect to mySQL Server, press "OK" and try later..' );
   end else
    Fail := True;
if i use MyConnection.Pooling = False and try to connect to a Down Server the Event OnError is handled.. but if a active Pooling the Envent ins't handled and a exception is raised..

i made a small project for this..

http://www.drdsistemas.com.br/util/Error.7z

thank's

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

Post by Dimon » Mon 15 Jun 2009 12:50

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Mon 15 Jun 2009 12:52

Dimon wrote:Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
Thank's Dimon.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Mon 15 Jun 2009 17:46

eduardosic wrote:
Dimon wrote:Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
Thank's Dimon.
Dimon, when new build will be released?

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

Post by Dimon » Tue 16 Jun 2009 12:28

The next MyDAC build will be released at the beginning of the next week.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Thu 25 Jun 2009 11:49

Dimon wrote:The next MyDAC build will be released at the beginning of the next week.
Dimon, the new build will be released at the end of this week?

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

Post by Dimon » Fri 26 Jun 2009 07:39

New build of MyDAC version 5.80.0.48 is available for download now.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Post by eduardosic » Fri 26 Jun 2009 13:07

Dimon wrote:New build of MyDAC version 5.80.0.48 is available for download now.
Thank's Dimon.

Post Reply