Background transfer manager don't back focus to TC
Moderators: Hacker, petermad, Stefan2, white
Background transfer manager don't back focus to TC
When using BTM (F5-F2/F6-F2) and BTM window don't open already, focus not returning to main TC window.
It is inherent on multi-core CPUs systems or hyper-treading enabled.
It is inherent on multi-core CPUs systems or hyper-treading enabled.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I don't understand the problem. Can you give me step by step instructions on how to reproduce it, please? What Windows version do you use? I can test on a Core 2 Duo system with Windows XP or Vista home.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Excuse for brevity, English is not my native.
Tested on Win. XP(SP2 + KB896256) RU(Russian edition), Win. XP(SP3) RU.
May be localizing is a reason, but I don't sure...
Hardware: (PC I965, P35) Intel P4 Core Duo, Core Quad, and noutbooks with Celeron, Celeron Mobility.
Step-by-step:
Run TC
select files to copy/move (try the big one, >200Mb)
press F5(F6), then F2
Background Transfer Manager form is opened and focused.
On multi-core CPU - focus don't sending back to main form.
On single-core CPU (Celeron in example) - is OK (Main TC form on focus).
If "copy in background" method using (F5, OK, Copy in Backgr.) - focus is correctly remains on main form on all hardware conditions.
Sorry for poor English and thank you for your work!
Tested on Win. XP(SP2 + KB896256) RU(Russian edition), Win. XP(SP3) RU.
May be localizing is a reason, but I don't sure...
Hardware: (PC I965, P35) Intel P4 Core Duo, Core Quad, and noutbooks with Celeron, Celeron Mobility.
Step-by-step:
Run TC
select files to copy/move (try the big one, >200Mb)
press F5(F6), then F2
Background Transfer Manager form is opened and focused.
On multi-core CPU - focus don't sending back to main form.
On single-core CPU (Celeron in example) - is OK (Main TC form on focus).
If "copy in background" method using (F5, OK, Copy in Backgr.) - focus is correctly remains on main form on all hardware conditions.
Sorry for poor English and thank you for your work!
Last edited by x0r on 2008-06-10, 10:07 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I could reproduce it now. It seems that Windows handles my SetFocus command (to focus the main window) first, before focusing the background panel, so the focus goes to the main window and immediately back to the background window. Calling a messagre loop (PeekMessage etc.) just before SetFocus seems to fix the problem...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
to fix the occasional focus problem in with RAR archives as target?
Sync into RAR: focus lost, file list lost
If this does no harm, maybe you could add this to cm_FileSync, too,Calling a messagre loop (PeekMessage etc.) just before SetFocus seems to fix the problem...
to fix the occasional focus problem in with RAR archives as target?
Sync into RAR: focus lost, file list lost
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
Hi,
I have this problem on two computers, TC 7.56a :
W7 64b quad core @home
XPSP3 32b dual core @ office
I noticed it a few weeks back then I trace the problem to the 7.56 Beta 2 version (17/11/2010 ; not the 7.56a rc2)
Before this version it was working correctly
It seems that the problem appears when the btm is triggered really fast
(option AlwaysCopyInBackground is set)
Select files, F5, Enter => the copy dialog is almost not visible, there's just a -glitch-
If I wait for the copy dialog to appear, the problem does not seem to occur
I have this problem on two computers, TC 7.56a :
W7 64b quad core @home
XPSP3 32b dual core @ office
I noticed it a few weeks back then I trace the problem to the 7.56 Beta 2 version (17/11/2010 ; not the 7.56a rc2)
Before this version it was working correctly
It seems that the problem appears when the btm is triggered really fast
(option AlwaysCopyInBackground is set)
Select files, F5, Enter => the copy dialog is almost not visible, there's just a -glitch-
If I wait for the copy dialog to appear, the problem does not seem to occur
TC#88260 -
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Any idea where the focus goes to? Maybe some other program catches it when TC loses it?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
I tried with the following autohotkey code, the message box is always empty when the focus is lost
Code: Select all
SPACE::
{
DetectHiddenWindows, On
ControlGetFocus, OutputVar, A
if ErrorLevel
{
WinGetTitle, Title, A
MsgBox,%Title%
}
else
MsgBox, Control with focus = %OutputVar%
}
returnn
TC#88260 -
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Can you press Alt+F4 when it happens, and check what program disappears?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...