Page 1 of 1

Multiple Connections and threads

Posted: Sat 08 Oct 2016 22:06
by HelgeLange
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

Re: Multiple Connections and threads

Posted: Mon 10 Oct 2016 11:23
by ViktorV
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.