Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.3.1, 5.3.2
-
None
-
Visual studio 2010 on one computer and Visual Studio 2013 on second computer. One with Qt 5.3.1 and one with Qt 5.3.2.
Description
There is a problem when release version of application is executed on another computer with the same Qt path but with different compiler/Qt version.
Application instead of loading "app.exe\platforms\qwindows.dll" loads "QT\qtbase\bin\platforms\qwindows.dll" because this path has higher priority than executable path.
Because of that application will silently crashes and it's very difficult to find reason for this.
The solution would be to set application executable path as first to search for plugins. It would be sufficient to rename/update method
QCoreApplicationPrivate::appendApplicationPathToLibraryPaths()
to
QCoreApplicationPrivate::prependApplicationPathToLibraryPaths()
and update
app_libpaths->append(app_location);
to
app_libpaths->preppend(app_location);
I prepared blogpost how to detect this problem and how to fix it on my blog:
http://blog.inventic.eu/2014/08/qt5-application-crashed-with-error-0xc0000005/
Please let me know if you will need any more info from me.