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. Qt creator build process is leaving a tmp file in c:\users\[home]\
Forum Updated to NodeBB v4.3 + New Features

Qt creator build process is leaving a tmp file in c:\users\[home]\

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 2.0k 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.
  • S Offline
    S Offline
    Snorkelbuckle
    wrote on 18 Mar 2020, 17:18 last edited by
    #1

    One Windows, every time I run my app in the debugger by pressing "F5" (Run), Qt is making a temp file in my home directory of the form "userssnorkappdatalocaltemptmp...", a listing looks like this:

    C:\Users\snork>dir /b
    .gitconfig
    3D Objects
    Contacts
    Documents
    Downloads
    Favorites
    Links
    Music
    OneDrive
    Saved Games
    Searches
    userssnorkappdatalocaltemptmp75ioql
    userssnorkappdatalocaltemptmphbzork
    Videos
    

    Except, the number of temp files at the end ranged in the thousands before I deleted them all once I noticed it. They are all 0 bytes.

    Does anybody know where this setting can be changed to either not create these temp files, move the location for this temp file, or at least Qt should be nice and delete it when done.

    This temp file is only created by Qt Creator, if I windeployqt the executable and run it without Qt Creator, the temp file is not created. It is also not created during the build process, it is only created when Run is used from Qt Creator.

    Any suggestions, thoughts? I suppose as last resort, I could write a batch file to clean these up and add it as a build step....but I shouldn't have to.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Mar 2020, 19:19 last edited by
      #2

      Hi,

      What version of Qt Creator are you using ?

      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
      • S Offline
        S Offline
        Snorkelbuckle
        wrote on 19 Mar 2020, 00:03 last edited by
        #3

        Qt Creator 4.11.1
        Based on Qt 5.14.1 (MSVC 2017, 32 bit)
        Built on Feb 5 2020 10:36:21

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 19 Mar 2020, 20:24 last edited by
          #4

          Just in case, did you already check the bug report system ?

          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
            Snorkelbuckle
            wrote on 20 Mar 2020, 03:52 last edited by
            #5

            No, I didn't check before posting. But I did check just now and couldn't find anything similar. But on the other hand, what exactly would the best search terms be? I tried the basics like "temporary" file, etc.

            I suppose I should report it...

            J 1 Reply Last reply 20 Mar 2020, 09:28
            0
            • S Snorkelbuckle
              20 Mar 2020, 03:52

              No, I didn't check before posting. But I did check just now and couldn't find anything similar. But on the other hand, what exactly would the best search terms be? I tried the basics like "temporary" file, etc.

              I suppose I should report it...

              J Offline
              J Offline
              JonB
              wrote on 20 Mar 2020, 09:28 last edited by
              #6

              @Snorkelbuckle
              I believe you'll find your situation is reported at https://stackoverflow.com/questions/56074667/gdb-in-qt-creator-putting-its-temporary-files-in-my-apps-working-directory, Qt Creator + MinGW + gdb. Not that anyone replied/solved. Suggest make absolutely sure your \Users\Snork\AppData\Local\Temp directory is writable by process. Otherwise can only think there is some mix up over the \s in path somewhere, such that they all get ignored/removed.

              1 Reply Last reply
              1

              1/6

              18 Mar 2020, 17:18

              • Login

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