Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31976

Windows: qdb.exe blocks Qt Creator's working directory from being deleted (even after Qt Creator exit)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 14.0.2, Qt Creator 15.0.0-beta2
    • Boot2Qt Support
    • None

    Description

      Even after Qt Creator exits, qdb.exe holds a handle to the working directory it is (indirectly) launched in. This means one cannot delete the working directory without manually terminating qdb.exe.

      How to reproduce

      • Make sure you do not have any old instances of qdb.exe running
      • Launch cmd.exe
        C:\> mkdir %TMP%\testdir&& cd %TMP%\testdir
        C:\Users\kakoehne\AppData\Local\Temp\testdir> C:\Qt\Tools\QtCreator\bin\qtcreator.exe 
        # (exit Qt Creator again)
        C:\Users\kakoehne\AppData\Local\Temp\testdir> cd .. && rmdir /q /s %TMP%\testdir
        *The process cannot access the file because it is being used by another process.*
        

      Analysis

      Looking for the cause in Process Explorer, it turns out that qdb.exe continues running, and keeps an open file handle to the working directory:

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sapiippo Samuli Piippo
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes