I confirmed the bug but i doubt it is occur by my code, i use that code for many years without any issue, beside it is occur only in TC 9 beginning of b13
my code is very simple, it is look like
Code: Select all
hWnd = FindWindow("TTOTAL_CMD", vbNullString)
If hWnd <> 0 Then
SetForegroundWindow hWnd
SendMessage hWnd, WM_Close, 0, 0
End If
I returned to TC changes log for b13, but i cannot figure out what fix/add may cause that!
To test
1- Run TC 9 b13 x32 with fresh ini
2- Run Configuration Editor from TC
3- Change any key (just to enable save button)
4- Execute File> Save and Restart Total Commander
5- TC window hangs in the background and another TC instance start (notice the instance number in TC's title)
6- Open the task manger and you will see two TC instances the visible one with 0 CPU and the hidden one with very high CPU usage.
Note: Sometime TC closes fine but in most cases it hangs
Tested under Windows 10 x64