Subject TIBOQuery & kbmMemTable: access violation
Author duilio_fos <irel_llc@libero.it>
kbmMemTable is a popular memory table, that can be freely downloaded
from http://www.components4developers.com .

kbmMemTable should work with all Tdataset descendants.

TIBOQuery IS a TDataset descendant.

Unfortunately I get an access violation _the 2nd time_ I use the
following, minimal code:

procedure TMaiFrm.test1Click(Sender: TObject);
begin
with Query1 do // Query1 is a TIBOQuery
begin
DatabaseName:='cb4db';
Close;
SQL.Clear;
SQL.Add('select * from tb_per');
Open;
end;

kbmMemTable1.EmptyTable;
kbmMemTable1.LoadFromDataSet(Query1,[mtcpoStructure]);
end;

In other words, the first time I click the test button, ev goes ok.
The 2nd time I click, I get the access violation.

kbmMemTable behaves correctly both with TTable and with TQuery.

TIBOQuery behaves as a TDataset in all aspects I could test.

However, they don't seem to get along well with each other.

I wonder if somebody can put me in the right direction re how to fix
the problem.

(I asked the same question in kbmMemTable group)

TIA

Duilio Foschi

PS I use D3 and IBO3