Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ThreadFindFirst not always working on reload

 
Post new topic   Reply to topic    Total Commander Forum Index -> Bug reports from previous betas (unresolved) Printable version
View previous topic :: View next topic  
Author Message
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Fri Jul 18, 2008 5:30 pm    Post subject: ThreadFindFirst not always working on reload Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Mon Jul 21, 2008 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Thu Jul 24, 2008 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Thu Jul 24, 2008 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Tue Jul 29, 2008 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Wed Jul 30, 2008 3:02 pm    Post subject: Reply with quote

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. Confused
_________________
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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Thu Jul 31, 2008 7:43 am    Post subject: Reply with quote

Well, I have
ThreadFindFirst=1
and
noreread=\IJ

and don't have this problem on XP. Sad

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
View user's profile Send private message Send e-mail Visit poster's website
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Thu Jul 31, 2008 9:58 am    Post subject: Reply with quote

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. Sad

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... Confused
_________________
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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Thu Jul 31, 2008 10:36 am    Post subject: Reply with quote

Do you use XP home or pro? I'm using XP home here.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Thu Jul 31, 2008 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24702
Location: Switzerland

PostPosted: Thu Jul 31, 2008 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
StatusQuo
Power Member
Power Member


Joined: 17 Jan 2007
Posts: 1456
Location: Germany

PostPosted: Thu Jul 31, 2008 12:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Bug reports from previous betas (unresolved) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group