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. Problems running projects
Forum Updated to NodeBB v4.3 + New Features

Problems running projects

Scheduled Pinned Locked Moved General and Desktop
33 Posts 6 Posters 20.7k 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.
  • C Offline
    C Offline
    croussou
    wrote on last edited by
    #1

    Hi there,

    I am having problems running my applications and i get constantly the error "<file name> exited with code -1073741515". I cannot even run the samples included in the platform.

    I have tried to search and google a bit around but no luck. Even tried to reinstall, nothing works. Any ideas?

    Thank you in advance.

    CR

    Regards,

    croussou

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vinb
      wrote on last edited by
      #2

      a quess you work on a linux distro?
      try install g++

      1 Reply Last reply
      0
      • C Offline
        C Offline
        croussou
        wrote on last edited by
        #3

        Ah no, in truth I am on Windows 7. Hope this helps.

        I am very frustrated with this.

        Thanks

        Regards,

        croussou

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Hi,

          which tool chain do you use for building the windows app?
          Do you build debug or release?
          Which Qt / SDK version?

          All this would help identifiing your problem.

          EDIT

          if you convert your decimal number to hex, it is C0000135
          C0000135 means dll not found.

          You could use dependency viewer to check, which dlls are not found.

          Additionally, look at the post of Volker in another Thread, he points some links:

          [quote author="Volker" date="1300382119"]See the general hints on "Deploying Qt Applications":http://doc.qt.nokia.com/stable/deployment.html and the specific instructions for "Windows":http://doc.qt.nokia.com/stable/deployment-windows.html

          These docs are available in Qt Assistant too. [/quote]

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • C Offline
            C Offline
            croussou
            wrote on last edited by
            #5

            Hi there,

            Thanks for replying.

            To start with I am using Qt Creator 2.0.1 based on Qt 4.7.0(32bit).

            When I try to debug I get this Error: Executable Failed - During startup program exited with code 0xc0000135, just like as you pointed out and then when I try to run the program I get the error described above.

            Then I used Dependency Walker to check the missing dlls related with qtcreator.exe

            SHLWAPI.DLL and IEFRAME.DLL are displayed highlighted where on the bottom a message says "Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module." I don't know how this will help but next to IEFRAME.DLL, there is a small hourglass.

            That's all.

            Thank you all in advance. I hope this will be solved fairly soon because I have a project I need to work with.

            Regards,

            croussou

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on last edited by
              #6

              Do you see any messages in the detailed debug log of qt-creator about which dll it cannot find?

              Can you launch you app from the command line (or windows explorer)?

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply
              0
              • C Offline
                C Offline
                croussou
                wrote on last edited by
                #7

                Alright, to start with, no messages found in the detailed debug log.

                However, I have tried to launch the application from the command line and i get the following message "The program can't start because mingwm10.dll is missing from your computer. Try reinstalling the program to fin this problem."

                Hope this helps.

                Thank you.

                Regards,

                croussou

                1 Reply Last reply
                0
                • Z Offline
                  Z Offline
                  ZapB
                  wrote on last edited by
                  #8

                  Either place that dll in the same dir as the executable or make sure that it can be found by the system by placing the dll's parent dir in the %PATH% search path. Note that you will need to restart qt-creator after modifying the environment variables for qt-creator to be aware of them.

                  Nokia Certified Qt Specialist
                  Interested in hearing about Qt related work

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    Hi croussou,

                    perhaps the links from volkers post help you to find, what you need:

                    [quote author="Volker" date="1300382119"]See the general hints on "Deploying Qt Applications":http://doc.qt.nokia.com/stable/deployment.html and the specific instructions for "Windows":http://doc.qt.nokia.com/stable/deployment-windows.html

                    These docs are available in Qt Assistant too. [/quote]

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      croussou
                      wrote on last edited by
                      #10

                      Okay, I located the .dll in question in the following directories.

                      C:\Qt\2010.05\qt\bin\mingwm10.dll

                      C:\Qt\2010.05\mingw\bin\mingwm10.dll

                      Question is, why windows search cannot locate the .dll and I need to manually locate them in their directory?

                      Now, as far as ZapB's post is concerned, how do I put the dll’s parent dir in the PATH search path?

                      Regards,

                      croussou

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        ZapB
                        wrote on last edited by
                        #11

                        It depends on how your %PATH% environment variable is configured. If the dir:

                        C:\Qt\2010.05\qt\bin\

                        is listed in that env var then windows will look in there for dll's when it loads applications. To set the env var (from memory) go to Control Panel->System->Advanced->Environment Variables. Then edit the %PATH% entry to include the above path (don't forget to separate it from the other paths with a semi-colon).

                        I've not used the Qt SDK on Windows but I am surprised that it did not set this up as part of the installation.

                        Then restart qt-creator and see if you can debug your app. You shoudl also be able to run it from Windows explorer too now (assuming no other dll's remian unfound).

                        Nokia Certified Qt Specialist
                        Interested in hearing about Qt related work

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          giesbert
                          wrote on last edited by
                          #12

                          windows searches for dll in the following way:

                          Current directory of your executable

                          windows system directory

                          all paths loacted in the %PATH% environment variable

                          Side by Side is searched in :
                          C:<Windows>\system32\WinSxs

                          You can look into this "MSDN article":http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx for more information on that.

                          bq. The first directory searched is the directory containing the image file used to create the calling process (for more information, see the CreateProcess function). Doing this allows private dynamic-link library (DLL) files associated with a process to be found without adding the process's installed directory to the PATH environment variable. If a relative path is specified, the entire relative path is appended to every token in the DLL search path list. To load a module from a relative path without searching any other path, use GetFullPathName to get a nonrelative path and call LoadLibrary with the nonrelative path. For more information on the DLL search order, see Dynamic-Link Library Search Order.

                          Nokia Certified Qt Specialist.
                          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            croussou
                            wrote on last edited by
                            #13

                            Sigh...

                            I am afraid it didn't work. I am desperate right now so much, I really need to get some work done during the weekend.

                            Any other possible solutions? I don't know maybe I did that process in the wrong way? I have created a new variable called qtcreator and inserted C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05\qt\bin.

                            Do you think I did something wrong?

                            I am sorry this thread is taking ages to solve.

                            Regards,

                            croussou

                            1 Reply Last reply
                            0
                            • Z Offline
                              Z Offline
                              ZapB
                              wrote on last edited by
                              #14

                              What? Who said anything about making a new environment variable called qtcreator? Just add C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05\qt\bin\ to the existing PATH environment variable.

                              Nokia Certified Qt Specialist
                              Interested in hearing about Qt related work

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                croussou
                                wrote on last edited by
                                #15

                                Okay, this time it was done right.

                                Still doesn't work though, still displaying same message in Qt, but in windows the .exe file displays a new error now.

                                "The program can’t start because MSVCP71D.dll is missing from your computer. Try reinstalling the program to fix this problem.”

                                What does it mean anyway? At least has the other one been solved?

                                Regards,

                                croussou

                                1 Reply Last reply
                                0
                                • Z Offline
                                  Z Offline
                                  ZapB
                                  wrote on last edited by
                                  #16

                                  This is the same type of error. The system cannot find another dll. In this case MSVCP71D.dll. This looks to be a debug dll from the MS Visual C toolchain.

                                  Can you clarify which compiler you are using to build your app please? You should be using mingw or MSVC not both. What is your Qt built against? From your previous posts it looks like you are using Mingw. I am not sure why you have this dependency on the MSVC debug runtime.

                                  Nokia Certified Qt Specialist
                                  Interested in hearing about Qt related work

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Scylla
                                    wrote on last edited by
                                    #17

                                    Please use dependency walker. With this you will see which lib is missing.
                                    "Dependency Walker":http://www.dependencywalker.com/

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      croussou
                                      wrote on last edited by
                                      #18

                                      Thanks for still providing help.

                                      I think I am using mingw but how can I know for sure?

                                      Do you think Microsoft Visual Studio 2010 has something to do with this? At work I have NetBeans, Qt, Microsoft Visual Studio, and Eclipse on same computer and works great all together.

                                      I don't understand what could be the problem on this computer.

                                      Regards,

                                      croussou

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        Scylla
                                        wrote on last edited by
                                        #19

                                        Load the binary in the dependency walker and show the picture. Then we can see what's wrong. I'm having all versions running on my pc. It's just a matter of environment configuration!

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          croussou
                                          wrote on last edited by
                                          #20

                                          Sorry, by binary you mean the qtcreator.exe?

                                          If so, it displays the IEFRAME.dll as red with a small hourglass on the side.

                                          Is this any helpful?

                                          Thank you.

                                          Regards,

                                          croussou

                                          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