Qt 5.5.0 (x86_64-little_endian-llp64 shared (dynamic) debug build; by MSVC 2013) ### add paths: Adding 1 to existing 0 watchers Looking for a thread/handle for "D:/temp/qtbug46449_file1_Hp6188.txt" QWindowsFileSystemWatcherEngine::addPaths absolutePath= "D:/temp" normalPath= "D:/temp/qtbug46449_file1_Hp6188.txt" No thread found ###Creating new thread QWindowsFileSystemWatcherEngineThread(0x8287a34030) "D:/temp" ( 1 threads) "D:/temp/qtbug46449_file1_Hp6188.txt" true Adding 1 to existing 1 watchers Looking for a thread/handle for "D:/temp/qtbug46449_file2_gq6188.txt" QWindowsFileSystemWatcherThread QWindowsFileSystemWatcherEngineThread(0x8287a34030) waiting on 2 handles QWindowsFileSystemWatcherEngine::addPaths absolutePath= "D:/temp" normalPath= "D:/temp/qtbug46449_file2_gq6188.txt" Found a thread QWindowsFileSystemWatcherEngineThread(0x8287a34030) "D:/temp" "D:/temp/qtbug46449_file2_gq6188.txt" true ### files: ("D:/temp/qtbug46449_file1_Hp6188.txt", "D:/temp/qtbug46449_file2_gq6188.txt") ### remove same paths one by one: QFileSystemWatcher::removePaths native removePaths ("D:/temp/qtbug46449_file1_Hp6188.txt") QWindowsFileSystemWatcherThread QWindowsFileSystemWatcherEngineThread(0x8287a34030) waiting on 2 handles removing "D:/temp/qtbug46449_file1_Hp6188.txt" handle.handle1 0xffffffffffffffff absolutePath= "D:/temp/qtbug46449_file1_Hp6188.txt" handle.handle2 0x138 absolutePath= "D:/temp" PathInfoHash= 2 h.remove true "D:/temp/qtbug46449_file1_Hp6188.txt" removePaths returns ("D:/temp/qtbug46449_file1_Hp6188.txt") "D:/temp/qtbug46449_file1_Hp6188.txt" false QFileSystemWatcher::removePaths native removePaths ("D:/temp/qtbug46449_file2_gq6188.txt") removing "D:/temp/qtbug46449_file2_gq6188.txt" handle.handle1 0xffffffffffffffff absolutePath= "D:/temp/qtbug46449_file2_gq6188.txt" handle.handle2 0x138 absolutePath= "D:/temp" PathInfoHash= 1 h.remove true "D:/temp/qtbug46449_file2_gq6188.txt" Closing handle 0x138 h.isEmpty(), calling it.remove() Stopping thread QWindowsFileSystemWatcherEngineThread(0x8287a34030) thread QWindowsFileSystemWatcherEngineThread(0x8287a34030) told to quit removePaths returns ("D:/temp/qtbug46449_file2_gq6188.txt") "D:/temp/qtbug46449_file2_gq6188.txt" true ### files: () ### add paths again Adding 1 to existing 0 watchers Looking for a thread/handle for "D:/temp/qtbug46449_file1_Hp6188.txt" QWindowsFileSystemWatcherEngine::addPaths absolutePath= "D:/temp" normalPath= "D:/temp/qtbug46449_file1_Hp6188.txt" No thread found ###Creating new thread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) "D:/temp" ( 1 threads) "D:/temp/qtbug46449_file1_Hp6188.txt" true Adding 1 to existing 1 watchers Looking for a thread/handle for "D:/temp/qtbug46449_file2_gq6188.txt" QWindowsFileSystemWatcherThread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) waiting on 2 handles QWindowsFileSystemWatcherEngine::addPaths absolutePath= "D:/temp" normalPath= "D:/temp/qtbug46449_file2_gq6188.txt" Found a thread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) "D:/temp" "D:/temp/qtbug46449_file2_gq6188.txt" true ### files: ("D:/temp/qtbug46449_file1_Hp6188.txt", "D:/temp/qtbug46449_file2_gq6188.txt") QWindowsFileSystemWatcherThread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) waiting on 2 handles ### remove paths with removePaths(): (returns path that were not removed) QFileSystemWatcher::removePaths native removePaths ("D:/temp/qtbug46449_file1_Hp6188.txt", "D:/temp/qtbug46449_file2_gq6188.txt") removing "D:/temp/qtbug46449_file1_Hp6188.txt" handle.handle1 0xffffffffffffffff absolutePath= "D:/temp/qtbug46449_file1_Hp6188.txt" handle.handle2 0x138 absolutePath= "D:/temp" PathInfoHash= 2 h.remove true "D:/temp/qtbug46449_file1_Hp6188.txt" removing "D:/temp/qtbug46449_file2_gq6188.txt" handle.handle1 0xffffffffffffffff absolutePath= "D:/temp/qtbug46449_file2_gq6188.txt" handle.handle2 0x138 absolutePath= "D:/temp" PathInfoHash= 1 h.remove true "D:/temp/qtbug46449_file2_gq6188.txt" Closing handle 0x138 h.isEmpty(), calling it.remove() Stopping thread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) thread QWindowsFileSystemWatcherEngineThread(0x8287a391e0) told to quit removePaths returns ("D:/temp/qtbug46449_file1_Hp6188.txt", "D:/temp/qtbug46449_file2_gq6188.txt") ("D:/temp/qtbug46449_file1_Hp6188.txt") ### files: ()