| View previous topic :: View next topic |
| Author |
Message |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Fri Jul 18, 2008 5:30 pm Post subject: ThreadFindFirst not always working on reload |
|
|
Maybe more a missing feature, but
| Code: | [Configuration]
ThreadFindFirst=1
| is not always working on reloads, TC still hangs for about 20 seconds here in some situations.
100% reproducible here (today) on XP SP2 + Win2k SP4 this way:
- have another program active beneath TC
- open an existing network share \\server\share\dir e.g. in a tab in right panel
- switch to another program using Alt+Tab
- switch off or cut connection to the above used share
- switch back to TC using Alt+Tab
- if Auto-Refresh is disabled, press Ctrl+R
=> TC hangs for about 20 seconds, then an error dialog is displayed, saying
| Quote: | Access denied on file
\\server\share\dir
|
_________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Mon Jul 21, 2008 9:21 am Post subject: |
|
|
Only FindFirstFile is called in the background thread. Further calls to FindNextFile etc. are done again in the foreground, for speed reasons. Maybe FindFirstFile succeeds in your case, but FindNextFile fails? I don't think that I can do anything in that situation. But I will try to reproduce the situation in the debugger to check what function is hanging in this case. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Thu Jul 24, 2008 8:56 am Post subject: |
|
|
2StatusQuo
Unfortunately I can't reproduce this error so far. How did you cut the connection in step 4? I simply unplugged the LAN cable, but then I get an error immediately when trying to refresh the share... _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Thu Jul 24, 2008 1:08 pm Post subject: |
|
|
2ghisler(Author)
I usually send the remote PC to hibernation
or simply disable the network connection on the target (!) machine
(right-click - disable, in systray or control panel\network connections).
| Quote: | I simply unplugged the LAN cable, but then I get an error immediately
|
Did you try to do that on the target machine?
I also get the error message immediately, if I disable the network connection of the PC where TC is running on,
but TC hangs if the server/target PC is cut off.
This way the local PC still has access to gateway and DNS server etc., only the server with the share is not reachable.
After some more testing: TC only hangs when it has opened at least one subdir on the share:
- \\server\share : no problem, TC shows "connecting" dialog.
- \\server\share\dir : TC hangs until the error message appears.
I hope you can reproduce it this way?
BTW, I have auto-refresh disabled here, so I have to press Ctrl+R for reloading:
| Code: | NoReread=AB\:/
noreread2=AB\
|
_________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Tue Jul 29, 2008 4:43 am Post subject: |
|
|
I tried what you suggested: Hibernating the other PC, and in a second test, unplugging that PC's network cable while it was running.
Unfortunately I couldn't find any problems with ThreadFindFirst: TC locks for about 3 seconds, and then shows the connect dialog.
Did you perhaps switch away from TC while it was hanging? The connect dialog is shown ONLY when TC has the focus. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Wed Jul 30, 2008 3:02 pm Post subject: |
|
|
| ghisler(Author) wrote: | Did you perhaps switch away from TC while it was hanging?
|
No, after switching back to TC I waited the whole 20 seconds watching the clock to verify it...
I now tested the other INI parameters used here and think I got it - started using TOTALCMD.EXE /i=%temp%\TEST.INI:
This works ("Cancel" dialog after 3 seconds):
| Code: | [Configuration]
ThreadFindFirst=1
|
This does not work (TC hangs for about 20 seconds when trying to reread using Ctrl+R):
| Code: | [Configuration]
ThreadFindFirst=1
NoReread=\
|
BTW, after pressing "OK" button or ESC key in the error dialog, TC hangs for another 20 seconds.  _________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Thu Jul 31, 2008 7:43 am Post subject: |
|
|
Well, I have
ThreadFindFirst=1
and
noreread=\IJ
and don't have this problem on XP.
Maybe a problem with a background virus scanner trying to scan the inaccessible drive? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Thu Jul 31, 2008 9:58 am Post subject: |
|
|
Both virus scanner and personal firewall were deactivated for this test - it's still hanging,
- from W2k SP4 and XP SP2 on different machines in both directions
- using both TC 7.03 and 7.04 Pre
I even tried this from an absolutely fresh install of XP SP2, with nothing else installed but TC 7.03 - with the same result.
This is how I connect to the network share in TC:
| Code: | net.exe use \\1.2.3.4 password /USER:user
cd \\1.2.3.4\share\subdirectory
|
If you also did this:
| Quote: | # switch to another program using Alt+Tab
# switch off or cut connection to the above used share
# switch back to TC using Alt+Tab |
...then I wonder what is different in our installations...  _________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Thu Jul 31, 2008 10:36 am Post subject: |
|
|
Do you use XP home or pro? I'm using XP home here. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Thu Jul 31, 2008 10:49 am Post subject: |
|
|
| ghisler(Author) wrote: | | I'm using XP home here. |
So do I in these tests. _________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24702 Location: Switzerland
|
Posted: Thu Jul 31, 2008 12:00 pm Post subject: |
|
|
I have tested on XP Pro too, no problems either. Does it make a difference whether the two directories in TC contain many files or just one? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
StatusQuo Power Member

Joined: 17 Jan 2007 Posts: 1456 Location: Germany
|
Posted: Thu Jul 31, 2008 12:40 pm Post subject: |
|
|
No difference between many files or one, even with empty directories TC behaves the same.
P.S.: Today it's more like 16 seconds. _________________ Who the hell is General Failure, and why is he reading my disk?
-- Kibiby, Gibiby, Dididy, Lalaly. Doobi Dam Dam...
-- TC starter menu: Fast yet descriptive command access! |
|
| Back to top |
|
 |
|