Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 14.0.2, Qt Creator 15.0.0-beta2
-
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: