Results 1 to 3 of 3

Thread: App doesn't start on other machines. QtSql4.dll, exception code 0x0000005

  1. #1
    Join Date
    Aug 2012
    Location
    USSR
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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:
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2012-09-10T08:27:39
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8. QT += sql
    9.  
    10. TARGET = QHwTester
    11. TEMPLATE = app
    12.  
    13. INCLUDEPATH += $$quote(../../Common Files/Components)
    14. DEPENDPATH += $$quote(../../Common Files/Components)
    15. INCLUDEPATH += $$quote(../../Common Files/ThirdParty_Components)
    16. DEPENDPATH += $$quote(../../Common Files/ThirdParty_Components)
    17.  
    18. #RC_FILE = appico.rc
    19.  
    20. SOURCES += main.cpp\
    21. mainwindow.cpp \
    22. formpredefinedtests.cpp \
    23. ext-sources/serialportthread.cpp \
    24. ext-sources/serialportthreadgui.cpp \
    25. ext-sources/auxfunctions.cpp \
    26. ext-sources/auxfunctionsgui.cpp \
    27. formuserssubtasks.cpp \
    28. formwritedataintomem.cpp \
    29. formeraseinternalflash.cpp \
    30. formcrccalc.cpp \
    31. formcpuportstest.cpp \
    32. formrtctest.cpp \
    33. formbackuppower.cpp \
    34. appruntimevars.cpp \
    35. testforms.cpp \
    36. appsettings.cpp
    37.  
    38. HEADERS += mainwindow.h \
    39. formpredefinedtests.h \
    40. lib-pft3/src/pft3_70_f0.h \
    41. ext-sources/auxfunctions.h \
    42. ext-sources/auxfunctionsgui.h \
    43. ext-sources/serialportthread.h \
    44. ext-sources/serialportthreadgui.h \
    45. main.h \
    46. formuserssubtasks.h \
    47. formwritedataintomem.h \
    48. formeraseinternalflash.h \
    49. formcrccalc.h \
    50. formcpuportstest.h \
    51. formrtctest.h \
    52. formbackuppower.h \
    53. appruntimevars.h \
    54. testforms.h \
    55. appsettings.h
    56.  
    57. FORMS += mainwindow.ui \
    58. formpredefinedtests.ui \
    59. formuserssubtasks.ui \
    60. formwritedataintomem.ui \
    61. formeraseinternalflash.ui \
    62. formcrccalc.ui \
    63. formcpuportstest.ui \
    64. formrtctest.ui \
    65. formbackuppower.ui
    66.  
    67.  
    68. #RESOURCES += \
    69. # icons.qrc
    70.  
    71. LIBS +=-L"../../Common Files/ThirdParty_Components/qextserialport/bin/build"
    72. LIBS +=-lqextserialport
    73.  
    74. LIBS +=-L$$quote(../../Common Files/Components/lib-pft3/bin/release)
    75. #LIBS +=-L$$quote(../../Common Files/Components/lib-pft3/bin/debug)
    76. LIBS += -llib-pft31
    77.  
    78. LIBS += -L$$quote(../../Common Files/Components/lib-qgui-log/bin/release)
    79. #LIBS += -L$$quote(../../Common Files/Components/lib-qgui-log/bin/debug)
    80. LIBS += -llib-qgui-log1
    81.  
    82. LIBS +=-L$$quote(../../Common Files/ThirdParty_Components/qwt-6.0.1/lib)
    83.  
    84. LIBS += -lqwt
    85. LIBS += -lqwtmathml
    86. #LIBS += -lqwtd
    87. #LIBS += -lqwtmathmld
    88.  
    89. #LIBS +=-L$$quote(C:/Qt/QtSDK/Desktop/Qt/4.7.3/mingw/plugins/sqldrivers)
    90.  
    91. #LIBS += -lqsqlited4
    92.  
    93. unix:DEFINES = _TTY_POSIX_
    94. win32:DEFINES = _TTY_WIN_
    95.  
    96. RESOURCES += \
    97. icons.qrc
    98.  
    99. OTHER_FILES += \
    100. database_structure.txt
    To copy to clipboard, switch view to plain text mode 

    What I did wrong?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: App doesn't start on other machines. QtSql4.dll, exception code 0x0000005

    Did you copy QtSql4.dll to those other machines?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2012
    Location
    USSR
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: App doesn't start on other machines. QtSql4.dll, exception code 0x0000005

    Of course.
    Quote Originally Posted by Sacha_D View Post
    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 View Post
    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.
    Last edited by Sacha_D; 20th November 2012 at 06:22.

Similar Threads

  1. QTimer in QThread doesn't start or timeout
    By Boron in forum Qt Programming
    Replies: 9
    Last Post: 21st October 2011, 13:51
  2. Exception code c0000005 in QtWebKit4.dll
    By lukaslang in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2011, 16:44
  3. 4.7.0 assistant doesn't start
    By Braunstein in forum Qt Tools
    Replies: 1
    Last Post: 16th December 2010, 13:10
  4. Replies: 1
    Last Post: 2nd June 2010, 16:14
  5. Problem Qtsql4 during compiling
    By abeinoe in forum Installation and Deployment
    Replies: 1
    Last Post: 8th February 2009, 05:45

Tags for this Thread

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.