Results 1 to 2 of 2

Thread: QT dialogs loaded as DLLs in QT5 seem to be not safe against unload procedures

  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QT dialogs loaded as DLLs in QT5 seem to be not safe against unload procedures

    Hi everyone,
    I have a QT application which is started as an executable. In that application, I load components stored in DLLs, each coming along with a dialog window.
    System is Windows 7, VS2012 and Qt 5.1.1 compiled from sources by the way.

    This worked well for a long time in QT4 but now that I switched to QT5, there are numerous problems. Those problems are related to the fact that DLLs are properly loaded with all symbols and stuff but the unload does not really work properly in QT5.
    I first reported a problem here

    http://www.qtcentre.org/threads/5710...096#post255096

    and finally solved this issue myself by fixing the respective lines of code. However, when reporting this as a bug, the answer was that unloading DLLs with metatypes is not supported,

    https://bugreports.qt-project.org/browse/QTBUG-35935.

    Once I had fixed that problem, I started to run into the next problem which was related to a QFontCache behavior which seemed not to be safe against unload of DLLs. I did not check the reason for this in detail since I need to use QT and do not have too much time to take part in the development.

    So, here is my question: is it worth checking the reason for these types of errors or is the concept of "unloading QT DLLs" a feature which is not meant to be supported? My feeling would be that unloading DLLs should be supported whenever loading DLLs is. So, could anyone comment on this?
    If it is not supported officially I will either return back to QT4 which did not make any problem in this regard or I will remove the "dynamic load of components" feature.

    Thank you for any comment and best regards

    Hauke

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QT dialogs loaded as DLLs in QT5 seem to be not safe against unload procedures

    I guess a question like that is better directed at the people developing Qt.

    E.g. on the Qt development list http://lists.qt-project.org/mailman/...fo/development

    Cheers,
    _

Similar Threads

  1. qt 3d unload lib3ds library
    By Bovin in forum Newbie
    Replies: 1
    Last Post: 16th August 2013, 00:42
  2. How to unload a QDeclarativeView object
    By nestuser in forum Newbie
    Replies: 0
    Last Post: 17th August 2012, 06:45
  3. How to unload a QPixmap
    By MorrisLiang in forum Newbie
    Replies: 1
    Last Post: 19th June 2010, 22:30
  4. Use of parent for automatic unload
    By PaceyIV in forum Newbie
    Replies: 9
    Last Post: 30th July 2009, 08:13
  5. Qt4: How to use Stored Procedures?
    By pinktroll in forum Qt Programming
    Replies: 6
    Last Post: 28th August 2006, 13:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.