Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 14.0.2, Qt Creator 15.0.0-beta2
-
None
-
aafded8d3 (15.0)
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
For Gerrit Dashboard: QTCREATORBUG-31976 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
615998,2 | qdb: set working directory for the qdb server process | 15.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |