Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Tue, 22 Aug 2006 20:08:21 -0500
I tried to create (and destroy) TADOConnection in each separated thread, but
still Delphi raises the same exceptions!
You need to create and destroy all database components that you use in each
thread.
What line of code triggers this error?
"Dmitry Arefiev" <darefiev@xxxxxxxxxxx> ha scritto nel messaggio
news:44e9e4af@xxxxxxxxxxxxxxxxxxxxxxxxx
Hello Antonio
You should use single connection object per thread at time. And not share
it between threads.
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access framework
gs-soft AG - www.gs-soft.com
SAPx - Delphi to SAP R/3 direct access
Saphir - SAP R/3 metadata at your fingertips
MetaBase - ERWIN model in Delphi applications
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- From: Antonio Scarpelli
- Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- References:
- Problems with ADO and Multithreading: List Index Out Of Bounds
- From: Antonio Scarpelli
- Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- From: Dmitry Arefiev
- Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- From: Antonio Scarpelli
- Problems with ADO and Multithreading: List Index Out Of Bounds
- Prev by Date: Re: Preventing insert, update and deletes
- Next by Date: Re: Can't use '*' in TADODataset.Filter
- Previous by thread: Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- Next by thread: Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- Index(es):
Relevant Pages
|