assertion failure

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
charbel
Posts: 15
Joined: Fri 02 May 2008 06:42

assertion failure

Post by charbel » Tue 01 Jul 2008 07:39

hi,

im opening a table in a form where this table is not updated with new fields. so an error occurs : field 'xxx' not found. which is normal.
but once i close the form, an error occurs : 'assertion failure
(D:\Projects\Delphi\Dac\Source\MemDS.pas, line 2563).
i traced my code and i found that this error is raised due to my code :

procedure TMyForm.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
...
table.cancel;
...
end;

i added this code :
if Table.State in [dsEdit,dsInsert] then
table.cancel;

and its working now.
but i need to know what is this bug and how to avoid it.
might appear later on another function rather then canceling table.
any sugestions?

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

Post by Dimon » Tue 01 Jul 2008 13:44

Thank you for information. This bug appears when the recordset is not defined. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.

FerCastro
Posts: 47
Joined: Mon 26 Jun 2006 17:32
Location: México City
Contact:

Post by FerCastro » Sun 14 Sep 2008 00:40

Hello,

I get the same error, but in a differente line:

d:\projects\delphi\dac\source\memdata.pas, line 6165

I am using Virtual table

DO you have a a fix?

Best regards

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

Post by Dimon » Mon 15 Sep 2008 09:38

I can not reproduce the problem.
Please give a more detailed description of the problem.

Post Reply