TC 9 b13 & b14 (x32 only) close issue

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

TC 9 b13 & b14 (x32 only) close issue

Post by *ts4242 »

I received Configuration Editor bug error say when do any change and execute File> Save and Restart Total Commander TC window just disappear but still run in the background (see Task Manager) and a new TC instance start, this happens only with TC 9 b13 & b14 (x32 only under x64 OS)

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
What cause TC hang when receiving WM_Close instead of closing?

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
krasusczak
Senior Member
Senior Member
Posts: 284
Joined: 2011-09-23, 10:35 UTC

Post by *krasusczak »

User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

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.
I can confirm this under Windows 10 x64 and Windows 8.1 x64, but not under Windows 7 sp1 x64 - and only with 32bit TC9.

I also notice that the running instance of Configuration Editor get "[2]" in the start of the title when this happens.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

petermad wrote:but not under Windows 7 sp1 x64
The user who reported this bug to me was using Windows 7 x64, but as i said it is sometime TC closes fine but in most cases it hangs.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please try again with beta 15. It may or may not fix the problem. I could only reproduce it on Windows 10, but very reliably. And it's gone for me with beta 15.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Fixed in TC 9 b15

I restarted TC 9 b15 using Configuration Editor many times and confirmed there is no hang at all.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC9b15 x86 under Windows 10 x64 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply