Multiple Connections and threads
Posted: 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
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