Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Exe file crashes

[SOLVED]Exe file crashes

Scheduled Pinned Locked Moved General and Desktop
qtcpsocketqnetworkaccessm
4 Posts 2 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andrewkiko
    wrote on last edited by andrewkiko
    #1

    Hello, i have a problem with my .exe. If i try to run program in QT everything works fine. But if i try to run it from .exe its crashes, when i press button, which connect to slot. And this slot сonnect app to server with QTcpSocket. I think problem in my code, but why it works in QT?
    Help me, please!

    My list of files in exe dir:
    icudt53.dll
    icuin53.dll
    icuuc53.dll
    libeay32.dll
    libssl32.dll
    msvcr120.dll
    qt.conf
    Qt5Core.dll
    Qt5Gui.dll
    Qt5Network.dll
    Qt5WebSockets.dll
    Qt5Widgets.dll
    res.qrc
    Settings.ini
    ssleay32.dll
    qminimal.dll
    qwindows.dll

    http://pastebin.com/28pT1hkr its my mainwindow.h
    http://pastebin.com/dURpKQwt and mainwindow.cpp

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Looks like you are missing the network plugins. You should use windeployqt to grab the dependencies of your executable, it should get everything you need to make your application run.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        andrewkiko
        wrote on last edited by
        #3

        Thanks so much. Everything works fine now.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since you have it running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Also, consider up-voting answer(s) that helped you, it will make them easier to find for other users :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved