Threading

dmcgary

Member
Documentation on threading states.
"For both configurations, access to a TOracleQuery, TOraclePackage and TOracleDataSet must always be restricted to a single thread."

My question is can one TOracleQuery be shared among multiple threads if I serialize access through the use of critical sections?
 
As long as you make sure that you handle the complete query (set the SQL and variables, execute the query, fetch results until Eof, and so on) within a single critical section, you will be fine.

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