Sync directorys: Window title is missing sometimes

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Sync directorys: Window title is missing sometimes

Post by *Samuel »

The title of the synchronize directory window sometimes disappears randomly.
But I didnt found a way how to reproduce it by 100%.


I only do:
- sync two folders
- copy files
- escape the second compare step
- sync other folders

Edit: I use folders on my laptop to sync with my PC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I have never seen this problem. Can anyone else reproduce it?
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

It happened here only 2 or 3 times till now.

Cant you see something in the code?
When is the Window title set? Could the titles be empty under some circumstances?

I dont know for sure if I am talking about the internal or external tool.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked my code, and it's not set anywhere in it, only automatically when loading the form.

Maybe some subfunction like compare or copy changes it, but I'm not aware of such a problem...
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

This bug still appears in TC 7.5rc1. I think I found better reproduce steps: (actually they describe the way I currently use the standalone sync tool at most times)

1. Start the standalone sync tool and compare two folders
2. Start the copy progress
3. activate some other windows
4. Usually when the copy progress finishes and the new compare step starts the window title disappears

Seems to be 100% reproduceable.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Please, can someone try to reproduce?
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Under Win2K: I tried a few different tests, with the following on a button:
%COMMANDER_PATH%\totalcmd.exe /S=S i:\___NEW___ i:\___NEW___2
It would need to copy 2 30MB files. Switched to various windows, Opera, CMD prompt, an editor, etc.
When coming back to the standalone Sync tool the Title was always "Synchronize Directories"

Although this did show a different BUG,
/S=S:=
does not work as the help file indicates... it ALWAYS says:
Warning: The left and right side show the same directory!
Even when the left/right tabs were in different Drives/Folders.

Someone else with WinXP needs to test, and you also might want to try with disabling any AHK stuff you have running to see if that gives any different results.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

you also might want to try with disabling any AHK stuff you have running to see if that gives any different results.
Tried with everything disabled. Same result.
Switched to various windows, Opera, CMD prompt, an editor, etc.
When coming back to the standalone Sync tool the Title was always "Synchronize Directories"
The sync window must be in background in the moment, when the resync starts.
Although this did show a different BUG,
/S=S:=
does not work as the help file indicates... it ALWAYS says:
Warning: The left and right side show the same directory!
Even when the left/right tabs were in different Drives/Folders.
What syntax do you use.
Here:

Code: Select all

Totalcmd.exe /S=S:= "E:\___NEW___" "E:\___NEW___2"
works fine
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

No, the helpfile indicates that:
/S=S:=
does not require you provide the Path1 and Path2 values.
If the equal sign is the only parameter, e.g. /S=S:= , the comparison will start with the current directories and last used options.
Ahhh, I confirm your bug :-)
I waited for the "ding" to indicate the sync had finished, and the Title was blank. I was switching back to the window during its resync previously.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Ahhh, I confirm your bug
Great to hear that!


I can reproduce what you mean now: (but its by design)
Create a button with:

Code: Select all

Command: Totalcmd.exe
Parameter: /S=S:=
Now everytime you press the button the message "Warning: The left and right side show the same directory!" is shown.

But it is intended. You call the standalone Sync and its not connected to the current folders shown in TC. It gets its own pair of folders by commandline. You could give the folders of TC by passing this as parameter:

Code: Select all

/S=S:= "%X%Z%P" "%T"

Edit: The helptext is indeed strange and was copied from the command SYNCOPEN.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce and fix it now! It happens only when the sync tool does NOT have the focus! Then the progress dialog tries to restore the main TC window title (because it could have been used for showing % progress values), but since there is no TC main window, the sync tool is the main window. Furthermore, the TC main window title hasn't been set...
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Glad to hear that. Finally you found it. Good job!
I wonder why noone else found it. The standalone sync usually is in the background here.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

I can happily confirm the fix in TC 7.5 rc2.
Thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, finally the problem is resolved!
Author of Total Commander
https://www.ghisler.com
Post Reply