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] Application crash inside of QtCreator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Application crash inside of QtCreator

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 4.5k Views 1 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.
  • U Offline
    U Offline
    unmanner
    wrote on last edited by
    #1

    Hello!

    I have a problem with my application. (ssl+gsoap)

    I test situation when network is unreacheable. Test results are different in Creator enviroment and it real enviroment.

    When application running inside Creator everything is OK.
    When application running from Program Files in generates spontaneously chashes with "msvcr100.dll" in the call stack.

    I analyse my application with dep. walker it does not shows any dependency problem (except of missing MSVS redistributive package).

    How I can debug such sitiation?

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

      Hi,

      Did you deploy the application following the "windows deployment guide":https://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html ? Also is openssl somewhere findable for your application ?

      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
      • U Offline
        U Offline
        unmanner
        wrote on last edited by
        #3

        Ok, I'll check my package, thank you.

        I have an another one question, how I can see full patchs of all loaded dll's while I run my executable?

        1 Reply Last reply
        0
        • U Offline
          U Offline
          unmanner
          wrote on last edited by
          #4

          Dependency walker shows the following:

          !http://i022.radikal.ru/1310/05/9ec06d485083.png(hjhjh)!

          1 Reply Last reply
          0
          • N Offline
            N Offline
            NicuPopescu
            wrote on last edited by
            #5

            bq. I analyse my application with dep. walker it does not shows any dependency problem (except of missing MSVS redistributive package).

            be sure if your app starts and runs then it finds and loads all requested dlls against was linked, otherwise it won't even start

            I think your crash has different reason

            what do you mean by running in QtCreator, in debug mode?

            1 Reply Last reply
            0
            • U Offline
              U Offline
              unmanner
              wrote on last edited by
              #6

              bq. I think your crash has different reason

              Your are absolutely right! Cracher orrures spontanely sometimes.

              bq. what do you mean by running in QtCreator, in debug mode?

              No, without debug. I run release revsion in Creator and without of them.

              I'll try to make Dependency walker happy by adding required dll this evening and come back with results.

              Thank you for reply.

              1 Reply Last reply
              0
              • U Offline
                U Offline
                unmanner
                wrote on last edited by
                #7

                Hello again,

                I found the very very very strange dependency!

                Crashes occur if I run my application from Program Files directory
                But after the cope application dir to tmp crash is absent!

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  unmanner
                  wrote on last edited by
                  #8

                  Root cause:

                  Writing to file in system dir (I write application log to Program Files) is not allowed in win7/8 and application crashed.

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

                    You should write such files in the user application data path. Have a look at QStandardPaths (Qt 5) or QDesktopServices (Qt 4)

                    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