EAssertion failed : MyDAC 4.0.17

EAssertion failed : MyDAC 4.0.17

Postby 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'
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Postby 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.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby 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;
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Postby 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.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby swierzbicki » Mon 26 Dec 2005 16:37

Allright, i'll remove it asap
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59


Return to MySQL Data Access Components