EAssertion failed : MyDAC 4.0.17

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

EAssertion failed : MyDAC 4.0.17

Post by swierzbicki » Fri 16 Dec 2005 14:20

Hi,

I have installed MyDAC 4.017 under D2006
When using DBlookupCombobox, i'm getting this from time to time :
Project XXX.exe raised exception class EAssertionFailed with message 'DisposeBuf failed (C:\...\MemData/pas, line 6331'
Do you perhaps know why i'm getting this ?

After continuing, i'm getting this exception with message : 'AddRefStr failed'

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 19 Dec 2005 09:33

No, we don't known about such error. Send us please small sample and we will check this problem before releasing MyDAC for Delphi 2006.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Mon 19 Dec 2005 10:32

Ok, let me the time to create a project.
But consider this :

i have one Master Table.
This master table contains an autoinc field and 3 "reference fields" called : IdRef1 , IdRef2 and IdRef3

I have also added 3 DBLookup Fields (to the master table) : Ref1 , Ref2 and Ref3. These fields are linked to the same DBlookup Table.

The DBlookup table contains 3 records (for exemple) :
Id --- Name
1 New
2 Old
3 Deleted

On my form, I've put 3 DBlookupComboBox.
On each DBlookupComboBox closeup event (or onchange event) I 've put this code :

If IDrefX = 2 then
Begin
//erase some records in a table (with an sql statement)
DeleteRecords('Tablexxx');
Master_Table.refreshrecord; <==== Error occurd here
End;

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 23 Dec 2005 13:47

Most possible, problem is in calling sequence

Navigating by Mater_Table -> Calculating LookUp fields -> Changing DBlookupComboBox value -> Calling Master_Table.refreshrecord.

It's illegal to call RefreshRecord before ending of navigating.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Mon 26 Dec 2005 16:37

Allright, i'll remove it asap

Post Reply