Page 1 of 1

LoadFromFile StackOverflow

Posted: Mon 06 Jul 2009 06:31
by ikra
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.

Posted: Mon 06 Jul 2009 12:52
by Plash
We could not reproduce the problem. Please send to support*devart*com a complete small sample that demonstrates the problem.

Posted: Mon 06 Jul 2009 14:54
by ikra
Done a minimal example.

Posted: Fri 27 Nov 2009 15:43
by m227
the same problem:

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.
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

Posted: Mon 30 Nov 2009 09:34
by Plash
We could not reproduce the problem. Please send to support*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Same Problem

Posted: Mon 01 Feb 2010 12:28
by variosts
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.

Posted: Wed 07 Jul 2010 08:30
by jkuiper
I also have the same problem. But I created a workaround in runtime

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;
It's not an nice one and the problem should be corrected.
My version of TVirtualtable is gotten from MyDAC.