Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread List Index out of bounds - DBISAM 4.24
Thu, Jul 3 2014 4:28 PMPermanent Link

Frank Bravenboer

Hi There

One of our Multi-Threaded applications (8 threads) are sporadically getting "List index out of bounds" error.
Each Thread has it own Session&Database component.

I was reading the support forum and came across the following reply you gave regarding multi threaded apps.

<
http://www.elevatesoft.com/forums?action=view&category=dbisam&id=dbisam_general&page=28&msg=61214

You need to set the SessionName *before* the DatabaseName for the
TDBISAMDatabase and TDBISAMQuery components.  If you don't, then they will
try to use the same global default session for finding the database and
accessing it.
>

Currently we create and assign our table/queries/dbs as follows
 With dataset do
 begin
       databasename:= FDB.DatabaseName;
       SessionName := FDB.SessionName;
 end;

 with DB do
 begin
   if AConnectType = ctBackOffice then    begin
     DBName := 'DATAServer';
     DatabaseName := 'DBBackOffice'+ASuffix;
   end
   else
   begin
     DBName := 'DATA';
     DatabaseName:= 'DBLocal'+ASuffix;
   end;

   SessionName := ASes.SessionName;
 End;

Could this be the cause of the error?
Could this also cause a DBISAM Engine Error # 11010 Table or backup file '' does not exist errors in the TDataDirectory.CloseDataTable procedure?

Regards
Image