Page 1 of 1

assertion failure

Posted: Tue 01 Jul 2008 07:39
by charbel
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?

Posted: Tue 01 Jul 2008 13:44
by Dimon
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.

Posted: Sun 14 Sep 2008 00:40
by FerCastro
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

Posted: Mon 15 Sep 2008 09:38
by Dimon
I can not reproduce the problem.
Please give a more detailed description of the problem.