Shutdown problem with 2 UniConnection (Firebird) in seperate threads
Posted: Sat 25 Jul 2015 11:41
Hi DevArt,
I use a firebird connection in a program, that also uses a small thread pool where sometimes a new connection to another DB is opened, some job executed and, when the queue is empty, closed again.
Up to here everything works fine. The jobs can be done in 1-x different databases to the main database, which is open from the very beginning to the end. The Job-connections are opened and run in a thread and closed in the same context and later freed in the main thread.
I use BPLs btw for the Main exe, the other bpls and the DLLs, all use runtime packages.
When I try to shutdown the program it always gets stuck unloading DLLs. I traced the problem back to the unidac components in the thread connections. While I don't create the thread, is shuts down normally. If I create the connection, it gets stuck. If I do the thread and everything just without unidac, is works. Now I changed to DbExpress for the thread connection and it also works fine..
Any ideas ?
Thanks in advance...
I use a firebird connection in a program, that also uses a small thread pool where sometimes a new connection to another DB is opened, some job executed and, when the queue is empty, closed again.
Up to here everything works fine. The jobs can be done in 1-x different databases to the main database, which is open from the very beginning to the end. The Job-connections are opened and run in a thread and closed in the same context and later freed in the main thread.
I use BPLs btw for the Main exe, the other bpls and the DLLs, all use runtime packages.
When I try to shutdown the program it always gets stuck unloading DLLs. I traced the problem back to the unidac components in the thread connections. While I don't create the thread, is shuts down normally. If I create the connection, it gets stuck. If I do the thread and everything just without unidac, is works. Now I changed to DbExpress for the thread connection and it also works fine..
Any ideas ?
Thanks in advance...