Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48586

IDC crashes on DLLs depending on other DLLs in same folder

    XMLWordPrintable

Details

    •  824df695ad99d6096c2744bd476f75822cee1323 (qtactiveqt/5.6, 9.10.2015,5.6b)

    Description

      As of today, IDC crashes when attempting to register a ActiveQt COM DLL as post-build event, if the DLL depends on other DLL(s) in the same folder. The reason for this is because IDC loads the DLL using LoadLibrary, which does NOT add the folder containing the DLL to the search path when loading dependencies [it does add add the path to the executable, though, which does not help here].

      Alternative solutions:

      • Replace LoadLibrary(filename) with LoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR) in qtactiveqt\src\tools\idc\main.cpp. Unfortunately, this approach requires the filename to be a fully qualified path, which might be problematic
      • Add DESTDIR to PATH at the start of the generated post-build script in qtbase\mkspecs\features\win32\idcidl.prf

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes