Multi-thread

dEnvEr

Member
Hi,

I am using TOracleSession, TOracleDataSet version 3.4.6.1 in my delphi 6 project.

To open the query I am using a thread because some queries take really long and I want user to be able to cancel it.

However, when I run the query first time everything is fine but if requery the dataset and run it it generates the error message '..... raised exception class EListError with message
 
Is the dataset connected to a datasource and controls when you open it in a thread?

------------------
Marco Kalter
Allround Automations

[This message has been edited by mkalter (edited 27 May 2002).]
 
The dataset/datasource/datacontrols combination is not thread safe. You cannot open a dataset in a thread when it is connected to a datasource. You need to disconnect it from the datasource, open it in a thread, and after the thread is finished, reconnect it to the datasource.

------------------
Marco Kalter
Allround Automations
 
Back
Top