LoadFromFile in VirtualTable produces EStackOverflow but only if persistent fields are created with field editor.
I am using Delphi7 and VT that comes with IBDAC-3.00.0.4 or PGDAC-1.10.0.7.
LoadFromFile StackOverflow
the same problem:
MyDAC (DAC for MySQL), Turbo Delphi (2006) Pro. Windows XP.
Can't load saved table data... Stack Overflow:
The same when trying to load data in design time...
I found however a solution.
I had CRDBGrid with Columns set. One of columns had other title (caption) than in VirtualTable. Strange error however. Possibly a bug.
Michal
MyDAC (DAC for MySQL), Turbo Delphi (2006) Pro. Windows XP.
Can't load saved table data... Stack Overflow:
Code: Select all
vtData.SaveToFile( 'test.vtd' );
vtData.LoadFromFile( 'test.vtd' ); // <--- stack overflow.
I found however a solution.
I had CRDBGrid with Columns set. One of columns had other title (caption) than in VirtualTable. Strange error however. Possibly a bug.
Michal
Same Problem
I´ve got the same problem, when I use LoadfromFile.. I´ve send you an email with source-code...
Please send me an update. Thanks a lot.
Please send me an update. Thanks a lot.
I also have the same problem. But I created a workaround in runtime
It's not an nice one and the problem should be corrected.
My version of TVirtualtable is gotten from MyDAC.
Code: Select all
begin
with virtualtable do
begin
filetypgroepen := 'virtualtable.vtd';
if fileexists(filetypgroepen) then
LoadFromFile(filetypgroepen)
else
begin
DeleteFields;
AddField('type',ftString, 3);
AddField('nh',ftInteger, 0);
AddField('zh',ftInteger, 0);
end;
Active := true;
end;
end;
My version of TVirtualtable is gotten from MyDAC.