App doesn't start on other machines. QtSql4.dll, exception code 0x0000005
Hello. I write a program, that uses Qt SqLite. Mine version of Qt is 4.7.3. All dlls lays in the same directory as executable. On my computer application works from any place. On others (Win7, Vista) it fails, when user launch it. In fail details Windows says, that error was occurred in QtSql4.dll. Exception code is 0xC0000005.
My .pro file:
Code:
#-------------------------------------------------
#
# Project created by QtCreator 2012-09-10T08:27:39
#
#-------------------------------------------------
QT += core gui
QT += sql
TARGET = QHwTester
TEMPLATE = app
INCLUDEPATH += $$quote(../../Common Files/Components)
DEPENDPATH += $$quote(../../Common Files/Components)
INCLUDEPATH += $$quote(../../Common Files/ThirdParty_Components)
DEPENDPATH += $$quote(../../Common Files/ThirdParty_Components)
#RC_FILE = appico.rc
SOURCES += main.cpp\
mainwindow.cpp \
formpredefinedtests.cpp \
ext-sources/serialportthread.cpp \
ext-sources/serialportthreadgui.cpp \
ext-sources/auxfunctions.cpp \
ext-sources/auxfunctionsgui.cpp \
formuserssubtasks.cpp \
formwritedataintomem.cpp \
formeraseinternalflash.cpp \
formcrccalc.cpp \
formcpuportstest.cpp \
formrtctest.cpp \
formbackuppower.cpp \
appruntimevars.cpp \
testforms.cpp \
appsettings.cpp
HEADERS += mainwindow.h \
formpredefinedtests.h \
lib-pft3/src/pft3_70_f0.h \
ext-sources/auxfunctions.h \
ext-sources/auxfunctionsgui.h \
ext-sources/serialportthread.h \
ext-sources/serialportthreadgui.h \
main.h \
formuserssubtasks.h \
formwritedataintomem.h \
formeraseinternalflash.h \
formcrccalc.h \
formcpuportstest.h \
formrtctest.h \
formbackuppower.h \
appruntimevars.h \
testforms.h \
appsettings.h
FORMS += mainwindow.ui \
formpredefinedtests.ui \
formuserssubtasks.ui \
formwritedataintomem.ui \
formeraseinternalflash.ui \
formcrccalc.ui \
formcpuportstest.ui \
formrtctest.ui \
formbackuppower.ui
#RESOURCES += \
# icons.qrc
LIBS +=-L"../../Common Files/ThirdParty_Components/qextserialport/bin/build"
LIBS +=-lqextserialport
LIBS +=-L$$quote(../../Common Files/Components/lib-pft3/bin/release)
#LIBS +=-L$$quote(../../Common Files/Components/lib-pft3/bin/debug)
LIBS += -llib-pft31
LIBS += -L$$quote(../../Common Files/Components/lib-qgui-log/bin/release)
#LIBS += -L$$quote(../../Common Files/Components/lib-qgui-log/bin/debug)
LIBS += -llib-qgui-log1
LIBS +=-L$$quote(../../Common Files/ThirdParty_Components/qwt-6.0.1/lib)
LIBS += -lqwt
LIBS += -lqwtmathml
#LIBS += -lqwtd
#LIBS += -lqwtmathmld
#LIBS +=-L$$quote(C:/Qt/QtSDK/Desktop/Qt/4.7.3/mingw/plugins/sqldrivers)
#LIBS += -lqsqlited4
unix:DEFINES = _TTY_POSIX_
win32:DEFINES = _TTY_WIN_
RESOURCES += \
icons.qrc
OTHER_FILES += \
database_structure.txt
What I did wrong?
Re: App doesn't start on other machines. QtSql4.dll, exception code 0x0000005
Did you copy QtSql4.dll to those other machines?
Re: App doesn't start on other machines. QtSql4.dll, exception code 0x0000005
Of course.
Quote:
Originally Posted by
Sacha_D
All dlls lays in the same directory as executable.
To moderator: Please, change 0x0000005 to 0xC0000005 in the caption of the topic. I did the little mistake.
Of course.
Quote:
Originally Posted by
Sacha_D
All dlls lays in the same directory as executable.
To moderator: Please, change 0x0000005 to 0xC0000005 in the caption of the topic. I did the little mistake.
Added after 1 51 minutes:
Problem was soved.
It needs to create directory "sqldrivers" into the executable dir and put into it qsqlite4.dll.
Before that it was placed into the executable dir, that was wrong.