Different behavior of the TC main window depending on how the directory synchronization window is closed

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *Gral »

During researching this https://www.ghisler.ch/board/viewtopic.php?t=76211 problem, I came across another that may be and may be not related to the above. This one occurs only on x64 version also with clean ini.
When i call synchronize dirs window, wait to the end of compare dirs process and try close window there is nothing wrong if i close synch dirs window by TC own way - ESC or "Close" botton.
But if i use any Windows way "x" or just ALT+F4, main TC window disappears for a while, and appears back after about second.
No crash, no hangs.

EDIT
Just checked.
Still occurs on BETA 3
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

I was able to reproduce a short blink of the main program with these steps:
1. Start Total Commander 64-bit with parameter /i=c:\path\test.ini (ini not existing)
2. Go to a start directory for sync in both panels
3. Synchronize dirs
4. Check options Asymmetric, Subdirs and Empty directories, uncheck "="
5. Compare
6. Click on "X"

It doesn't happen on all further attempts unless I first delete the test.ini.
Author of Total Commander
https://www.ghisler.com
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *Gral »

Comparing to clean settings i need only to check Subdirs to bug occurs.
It seems that the time lenhgt of disappear is proportional to the number of directories to be compared, so i start from root of two drives.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

This should be fixed in beta 4, please test it!
29.04.22 Fixed: Synchronize dirs: The main Total Commander window could disappear for a fraction of a second when closing the dialog via Alt+F4 or "X" button (64)
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

Does anyone still get this error:
But if i use any Windows way "x" or just ALT+F4, main TC window disappears for a while, and appears back after about second.
It should be fixed in beta 4 and newer.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *white »

ghisler(Author) wrote: 2022-05-09, 07:18 UTC This should be fixed in beta 4, please test it!
29.04.22 Fixed: Synchronize dirs: The main Total Commander window could disappear for a fraction of a second when closing the dialog via Alt+F4 or "X" button (64)
Fixed, but now there is another problem. Compare the roots of 2 drives including subfolders, so the compare takes long. While TC is reading directories press F4. Like in earlier versions, nothing happens. Now wait until the reading directories has stopped or press Esc. The Synchronize dirs dialog is closed. This is new behavior since beta 4.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

Not confirmed. Did you perhaps press ESC after F4? Just pressing F4 with an empty list does nothing here.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *white »

ghisler(Author) wrote: 2022-05-16, 09:32 UTC Not confirmed. Did you perhaps press ESC after F4? Just pressing F4 with an empty list does nothing here.
Yes. Press F4 while TC is reading directories. Then wait until TC is finished or press Esc.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

Sorry, I really can't reproduce that. I pressed F4 about 20 times while the sync tool was reading directories. I also clicked on the result list and press F4 a few times again. The comparison continued just fine, and results were shown. I was able to abort reading with ESC, and the dialog did not close. Tried with 32-bit and 64-bit.

Do you use anything special, e.g. use standalone sync, or special parameters?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *white »

OMG, I meant Alt+F4. My brain left something out. Sorry about that :oops:

It seems to happen with all 32-bit versions.
With 64-bit versions this happens since TC10.50b4.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *ghisler(Author) »

Ah, that makes more sense. I can reproduce it.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Different behavior of the TC main window depending on how the directory synchronization window is closed

Post by *white »

Tested OK using TC10.50b6 32bit and 64bit. Alt+F4 now aborts reading directories and the synchronize dirs dialog is no longer closed. Clicking X also aborts.

Moderator message from: white » 2022-05-18, 17:48 UTC

Moved to Fixed bugs
Post Reply