Assertion failure - MySqlApiDirect.pas, Line 548

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
skirsche
Posts: 8
Joined: Fri 03 Apr 2009 06:59

Assertion failure - MySqlApiDirect.pas, Line 548

Post by skirsche » Fri 03 Apr 2009 07:22

I'm using MyDAC 4.40.0.23 with Delphi 5 and got the following exception:

Assertion failure (d:\Projects\Delphi\Mydac\Source\MySqlApiDirect.pas, Zeile 548)

What is this assertion checking?

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

Post by Dimon » Mon 06 Apr 2009 07:07

This is an internal check if connection parameters is set.
To solve the problem please give its more detailed description.

cherubinc
Posts: 1
Joined: Thu 22 Apr 2010 01:07

Post by cherubinc » Thu 22 Apr 2010 01:31

I've got the same message with the last version 5.90 on D7.

Code: Select all

Assertion failure (D:\Projects\Delphi\Dac\MySql\Source\MySqlApiDirect.pas, line 555)
I would like to use a 24H/24H client S/W without MySQL disconnection on MyIsam database.

So I added TCustomMyConnection.Ping every minute in a timer.

But when the Ping start during a query : I've got this error.

How to check if a query is running ?
With TCustomMyConnection.InTransaction ?

Thx for your support

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

Post by eduardosic » Thu 22 Apr 2010 02:39

cherubinc wrote:I've got the same message with the last version 5.90 on D7.

Code: Select all

Assertion failure (D:\Projects\Delphi\Dac\MySql\Source\MySqlApiDirect.pas, line 555)
I would like to use a 24H/24H client S/W without MySQL disconnection on MyIsam database.

So I added TCustomMyConnection.Ping every minute in a timer.

But when the Ping start during a query : I've got this error.

How to check if a query is running ?
With TCustomMyConnection.InTransaction ?

Thx for your support
See MyDAC help about LocalFailOver

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

Post by Dimon » Thu 22 Apr 2010 07:35

cherubinc wrote:So I added TCustomMyConnection.Ping every minute in a timer.
But when the Ping start during a query : I've got this error.
I can not reproduce the problem. Please try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.
Note: MyDAC can work in multithreaded applications, so it is thread safe. But the restriction is that you cannot use one component for more than one thread simultaneously.

Post Reply