Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. LNK recurring error
Forum Updated to NodeBB v4.3 + New Features

LNK recurring error

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 2 Posters 2.2k 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.
  • S Offline
    S Offline
    Stev20
    wrote on last edited by
    #1

    (30/10/14 : Issue has been solved, fix: Set Windows Application Experience to 'manual' in Windows services)

    Hi Qt Forums,

    I'm having a recurring issue when running a program created in Qt Creator, the program runs fine at first, but if a change is made (it seems like changes to the header file) and try running it again I get a LNK error saying the file cannot be opened.

    I looked online and this issue seems to occur when the programs already running, but the file isn't appearing in the task manager and the IDE says it's not running.

    I have tried running qmake and cleaning the project but that doesn't seem to help, do you have any solutions for this? I'm using Qt 5.3 with MSVC12 64bit compiler

    The error seems to go away after like 5 minutes... this isn't ideal.
    !http://puu.sh/ch8U8/771f7a4afe.png(LNK error)!

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

      Hi and welcome to devnet,

      Got an antivirus 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
      • S Offline
        S Offline
        Stev20
        wrote on last edited by
        #3

        [quote author="SGaist" date="1413667218"]Hi and welcome to devnet,

        Got an antivirus running ?[/quote]

        Yes I had Avast Antivirus running, I disabled it temporarily and the issue remains.

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

          Ok, then i'd try to find what is locking that file. Maybe "this":http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx might help

          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
          • S Offline
            S Offline
            Stev20
            wrote on last edited by
            #5

            [quote author="SGaist" date="1413725165"]Ok, then i'd try to find what is locking that file. Maybe "this":http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx might help[/quote]

            I ran Handler and used the command handle -p address (.exe file is AddressBook) and during the time where the LNK error appeared no handles were shown.

            Just to clarify, this issue happens when deleting a reference from a header file (in this case #include <QWidget>), saving the program, then undoing that deletion and saving again at which point the program takes around 2-3 minutes before it manages to compile again.

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

              Doing that while the application is 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
              • S Offline
                S Offline
                Stev20
                wrote on last edited by
                #7

                When running active handles are

                !http://puu.sh/cnpWR/a8c0ae1cad.png(active handles addressbook.exe)!

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

                  That is probably completely unrelated but, can you try again after moving your project to a spaceless folder ?

                  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
                  • S Offline
                    S Offline
                    Stev20
                    wrote on last edited by
                    #9

                    Seems like I've solved the issue, I had to set Windows Application Experience to 'manual' in Windows services. Thanks for your help SGalst.

                    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