+Refresh problem

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

Moderators: Hacker, petermad, Stefan2, white

HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

+Refresh problem

Post by *HBB »

Test on a flash disk (P:\) :

1) TC's left and right panes shows P:\
2) Created a Test.vbs file which includes followings : WScript.CreateObject("Scripting.FileSystemObject").OpenTextFile("P:\Test.txt", 2, True).Write ""
3) Created a button which executes above Test.vbs file
4) When the button is pressed, only one pane is refreshed (Test.txt appears only in the right pane)

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

Post by *petermad »

Hmm - it works OK here (tested with 32bit TC 8.5b4 under Windows XP and 64bit under Windows 8 ).

What are your settings for "Configuration" -> "Options..." - > "Refresh" ?
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
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

Sorry for missing info.

Win7 x64 + TC8.5B4 (same behavior both for x32 & x64)

Only followings are checked in Configuration>Options>Refresh :
1. item (Refresh when files are created ...)
2. item (Also when size, date...)

EDIT > Tested on Windows XP Pro as Virtual machine -> No refresh in both sides
EDIT2 > Tested with TC8.01 with same configuration -> No problem, refresh on both panes.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can now confirm the bug with WatchDirs=3 as you use.

If I change to WatchDirs=55 (which I use) or any setting that includes the "Update header (free disk space)" option, both panels are updated.
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
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, not confirmed on Windows 7. The file appears after about 1 second with WatchDirs=3

Only difference is that I had to use drive g: instead of p: because I don't have a drive p. It's a FAT32-formatted thumb drive.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have now tested some more, all with TC 8.5b4:

32bit version under Windows XP SP3 32bit:
It happens 8 or 9 out of ten times that only the right panel is updated

32bit and 64 bit version under Window 7 SP1 x64:
Both panels are almost always updated, but occasionally only the right panel is updated.

32bit and 64 bit version under Window 8 x64:
It happens 8 or 9 out of ten times that only the right panel is updated.

1. All tests are performed with clean ini files.
2. I enable the two options "Refresh when files are created, deleted and renamed" and "Also when size, date, or attributes change" in the config dialog.
3. Then I paste this button to the otherwise original button bar:

Code: Select all

TOTALCMD#BAR#DATA
g:\test.vbs

C:\WC\TOTALCMD.EXE,3



-1
4. Then I open the root of the same (on all 3 computers) USB 4 Gb Memory-stick in both panels, using the dropdown drive combo box.
5 And finally, I click the new button in the button bar.
Last edited by petermad on 2013-10-02, 21:10 UTC, edited 1 time in total.
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
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I missed the part that you have the same directory in both panels. I can reproduce it now: The refresh of the other side is optimized away by accident (TC gets the same refresh message twice in a row and assumes that it's a duplicate).
Author of Total Commander
https://www.ghisler.com
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

Tested TC8.5B5 :

Win7 64bit : OK, refresh on both sides.
WinXP on Virtual machine : Problem continues, no refresh on both sides.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I'm using the exact same functions on XP and 7. Did you try the 32-bit version on Windows 7? Maybe it's a 32-bit problem? But here it works with 32-bit too...
Author of Total Commander
https://www.ghisler.com
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

WinXP on real machine -> OK. refresh on both sides.

Sorry, I had tested it on the WinXP installed as virtual machine (virtualbox). Today, I open my old XP notebook for the test. You are right, it works well. It seems that TC does not refresh only on WinXP installed as virtual machine.

Regards
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

I just checked WinXP with VirtualPC (TC 8.50 beta 5 32-bit).

For local drives refreshing works in both panels.
For network drives (i.e. shared folders, existing on host computer drive) refreshing doesn't work.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Are they true network folders, or these special Virtual PC "Shared folders"? It's possible that the latter don't support notifications at all.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

You are right.

Special VirtualPC "Shared folders" don't support autorefreshing, neither with Test.vbs, nor when filesystem on host PC has changed.

Network drive mapped in normal way supports refreshing with both Test.vbs and host filesystem change. Both panels refresh properly.

Above was tested with VirtualPC 2004.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I testet TC8.5B5

Under Windows XP and Window 7 x64 both panels are now updated at the same time - BUT if TC is freshly started when I do the test, NONE of the file panels are updated at all. This applies to both 32- and 64 bit version of TC

If I Refresh the panels manually and delete the test.txt file and test again there are no problems.

It happens both with WatchDirs=3 and with WatchDirs=55


Under Windows 8 x64 it works OK.

Since there are differences betwen my OS'es I guess it is some kind of timing problem. My XP machine has the fastest processor and my Windows 8 the slowest

So I dont' think this bug is fully fixed
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
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I cannot reproduce that - I tested on Windows 7 and 8 by clicking on thevbs button just after starting TC with a fresh ini - no problem.

Can anyone else reproduce the problem?
Author of Total Commander
https://www.ghisler.com
Post Reply