|Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM Client/Server » View Thread|
|Messages 1 to 1 of 1 total|
|List Index out of bounds - DBISAM 4.24|
|Thu, Jul 3 2014 4:28 PM||Permanent Link|
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.
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
Currently we create and assign our table/queries/dbs as follows
With dataset do
SessionName := FDB.SessionName;
with DB do
if AConnectType = ctBackOffice then begin
DBName := 'DATAServer';
DatabaseName := 'DBBackOffice'+ASuffix;
DBName := 'DATA';
SessionName := ASes.SessionName;
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?