Hello,
I am using Qt 4.6.2 on Windows.
I have a Qt DLL that is invoked from a non-Qt application. The DLL exports couple of C interface functions.
The DLL does not create QApplication and does not have any user interface elements.
The DLL is loaded dynamically and unloaded when not needed.
I noticed that every time the DLL is loaded the count of semaphore handles of the process that loads the DLL increases. When the DLL is unloaded the handles are not freed.
I searched for information on Qt cleanup, or anything that needs to be done before dynamically unloading Qt ... but did not find anything.
In the DLL, I use QCoreApplication::addLibraryPath() and the classes QImage, QByteArray and QBuffer. All the DLL does is some image transformations.
Does anyone know how can I prevent the leaked handles?
Thanks,
Dimitar
Bookmarks