Multiple Connections and threads

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
HelgeLange
Posts: 17
Joined: Wed 13 Jun 2007 16:40
Location: Caracas

Multiple Connections and threads

Post by HelgeLange » Sat 08 Oct 2016 22:06

Hello DevArt,

I wonder if there is a known issue that the application hangs in this configuration :

I use runtime packages with DLLs. There I use one connection in the main thread as well as other connections (dynamically created to perform tasks on several databases) which run in threads (each in his own with ibprovider, UniConnection, Transaction etc)....

When I unload the programm and DLLs the unloadings hangs completely. I switched to a DbExpress connection (had to buy the DevArt interbase driver, lucky you) and that works... Now the threads use DbExpress, the main thread UniDAC.

Does this sound familiar ? Is it a stupid thing to try (for shared stuff between threads inside UniDAC, mine ins thread safe).

I even had the problem with a Delphi XE5 exe and a Delphi 2007 DLL dynamically loaded without runtime package for the Delphi 2007 DLL

Any ideas ?

Helge

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Multiple Connections and threads

Post by ViktorV » Mon 10 Oct 2016 11:23

In order to get a detailed answer, please compose a small sample demonstrating the described behavior and send it using the contact form https://www.devart.com/company/contactform.html including scripts for creating database objects.

Post Reply