Page 1 of 1

is TUniQuery thread safe

Posted: Sun 27 Dec 2009 21:44
by banita
Is TUniQuery, TUniSql thread safe?

can I open one TUniQuery componennt in first thread and use it in second thread or I must use critical section?

Posted: Mon 28 Dec 2009 08:10
by Plash
TUniQuery and TUniSQL are not thread safe. You should use your own critical section.

Posted: Mon 28 Dec 2009 10:41
by banita
one more question
when I create and use TUniQuery in one thread but not main thread. It is safe or I should use Symchronize method or critical section

Posted: Tue 29 Dec 2009 08:10
by Plash
It is safe to use TUniQuery in any one thread.

Posted: Wed 30 Dec 2009 09:02
by malinsky
HI,
"thread-safe" is create ALL components in any one thread. (Connection, Transaction, Query...)

PMal