Multithreaded Application

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 17
Joined: Sat 02 May 2009 11:20

Multithreaded Application

Post by [email protected] » Wed 16 Mar 2011 03:30

Is the TUniConnection Thread Safe?, i.e. is it possible to access dynamically created queries from within seperate threads using the same connection ? :?:

When I search the Unidac forum for this subject, I get 2 conflicting answers.

Thanks for your assistance.

Robert.

AndreyZ

Post by AndreyZ » Wed 16 Mar 2011 12:35

Hello,

UniDAC is thread-safe and you can use one connection in several threads, but it also depends on the database server you are using. For example, Firebird client library version lower than 2.5 isn't thread-safe. That's why our suggestion is to have separate connection per each thread.

Post Reply