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] LNK 1104 : cannot openfile ’debug\project.exe’
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] LNK 1104 : cannot openfile ’debug\project.exe’

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 3.3k 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.
  • Y Offline
    Y Offline
    ysing
    wrote on last edited by
    #1

    hello ,

    Whenever I change something in my code this fatal error occurs I tried different solutions:

    1)clean->run qmake->build->run

    1. I tried to delete the build directory but it says that the action couldn't be completed because the folder or a file in it is open in another program but I couldn't find where it is working

    3)I closed the qt creator and I deleted the .pro.user file and I reopened the project .

    none of those solutions worked .

    Can anybody help me findout the problem ?

    thanks in advance.

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

      Hi,

      Do you have an anti-virus running ? Some of them might interfere when developing.

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

        Well I have an antivirus but when I copied the same project into a new folder it worked .

        Isn't this strange ?

        Do you have an idea about what causes this type of problems ?

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

          Windows quirks...

          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
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            Go to Task manager on Windows and see if you program is still running ? May be you have written console app. It may be running still in background.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

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

              Dheerendra has a good point. Without the need to use the Task manager, Qt Creator shows you if your application is still running.

              Unlike on *nixes, on windows you can't rebuild your application if it's still running.

              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
              • Y Offline
                Y Offline
                ysing
                wrote on last edited by
                #7

                Well that day when I closed the Qt creator there wasn't any warning such as :

                " your application is still running : force quit / cancel"

                It has just exited normally after that when I opened the windows task manager Qt creator is not the list of running applications but when I reopen the project the same error occurs.

                the problem was solved only when I copied the project into a new folder.

                1 Reply Last reply
                0
                • dheerendraD Offline
                  dheerendraD Offline
                  dheerendra
                  Qt Champions 2022
                  wrote on last edited by
                  #8

                  It is not QtCreator issue. There must be a process called project.exe running. Once you move the project to different directory, path of executable got changed. So you are building the project.exe from different path. Hence it worked. I strongly suspect that there must be a project.exe running in your task manager. Please search for project.exe in task manager.

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.com

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    ysing
                    wrote on last edited by
                    #9

                    Dheerendra I checked the task manager ,yes you have reason I found the project.exe in the background processes .

                    Thank you.

                    1 Reply Last reply
                    0
                    • dheerendraD Offline
                      dheerendraD Offline
                      dheerendra
                      Qt Champions 2022
                      wrote on last edited by
                      #10

                      enjoy now. You can close this request to SOLVED state.

                      Dheerendra
                      @Community Service
                      Certified Qt Specialist
                      http://www.pthinks.com

                      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