cm_exit 13 - inactive window (for TCx32 only)

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

cm_exit 13 - inactive window (for TCx32 only)

Post by *monarch-lfv »

Problem: when restarting the TC with the command "cm_exit 13", Total commander turns out to be an inactive window, that is, it loses focus on other open applications. Moreover, the problem appears only on TCx32 version 11 (I don’t know which beta it started with). There was no problem on TC 10.52x32 either.
The problem can be reproduced on a pure TСx32 as follows:
Run the following command on the command line:

Code: Select all

cmd /C "Timeout /T 1 >nul"
and then this one:

Code: Select all

cm_exit 13
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *Horst.Epp »

Not confirmed.
TC x32 restarts, gets the focus and works as usual.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *monarch-lfv »

2Horst.Epp
Maybe Windows is to blame? I have Win7x64.
In general, as far as I understand, the problem occurs when the program passes the command to the child process. In my example:
TC -> cmd -> Timeout
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *Fla$her »

2monarch-lfv
Have you checked with /i=cleared.ini ?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *ghisler(Author) »

It may be a timing problem on your PC - if a program takes too long to start, it may not gain the focus.
Author of Total Commander
https://www.ghisler.com
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *monarch-lfv »

I tested on a working computer (Win10x64). Unfortunately, the problem is also present.
Thus, there are a problem on different machines. I ask forum users to check again, please. It may not work every time, try 2-5 times in a row.
I also repeat: the problem appeared in the version of TC11x32. Version 10.52х32 did not have a problem.
The file WINCMD.INI for the test was deleted completely. At the first launch, the TC creates a new file WINCMD.INI , that is, completely clean and standard.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *Sir_SiLvA »

not confirmed here either, Windows 10 with 32bit and 64bit.
TC has the focus always after restart.
Hoecker sie sind raus!
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *monarch-lfv »

Hmm, strange, well. If this is manifested only with me, then I will live on with this or look for the cause of the problem.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *petermad »

2monarch-lfv

I can confirm it with 32bit TC 11.00 under Windows 7 and under both 64bit and 32bit TC 11.00 under Windows 10.

EDIT - it only sometimes that I can reproduce it with 64bit TC, and I haven't found a way to reproduce it with 64bit TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *ghisler(Author) »

Unfortunately it's a Windows problem. I don't think that there is anything I can do about it, sorry.
Author of Total Commander
https://www.ghisler.com
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *monarch-lfv »

2ghisler(Author)
Well, then why was this problem not in version TC10.52 x32? Accordingly, something has changed in the 11th version.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *ghisler(Author) »

I have compared the code, CM_EXIT was not changed between TC 10.52 and TC11.00. As I wrote, it's probably a timing problem: Windows allows to run programs in the foreground only from programs which are already in the foreground (in this case, the previous instance of TC). However, there is a small timeout of a few seconds: If the new program doesn't start quickly enough, Windows doesn't let it in the foreground when the launcher program is no longer in the foreground (it closed). My guess is that your virus scanner doesn't trust TC 11.00 yet (but it trusts 10.52), so it takes longer to start.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_exit 13 - inactive window (for TCx32 only)

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply