Copy to an UNC path -> TC hangs

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Copy to an UNC path -> TC hangs

Post by *samot »

If I press F5 to copy a (single) file and enter an UNC path (f.e. \\pc1\temp) TC hangs for several minutes (even, if I click onto End Task in the task manager).

If I choose \\pc1\temp\ instead as destination (with additional backslash) it works fine.

I guess, that in the first version TC tries to find out, if the target is a folder and if not tries to create it (what fails, because it can't create a new shared folder on a pc), so it would help, to check eighter, if it is a shared folder or automatically add a backslash, if it is the first "folder" in an UNC path.

best regards

Thomas Franz[/b]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that, thanks.
Author of Total Commander
https://www.ghisler.com
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Post by *samot »

The with the auto-append it works fine now, but it would be nice, if you could find a solution for the problem, that TC freeze, if I enter a wrong UNC-Path (f.e. \\sevrer1\temp instead of \\server1\temp) or the Server is offline, too.

I don't know, if there is a quick API-Methode to check for the aviability of a server / sharing / directory or if there is a way to set a short (max. 10 sec) timeout to find the destination.

best regards

Thoams
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix!

Unfortunately there is neither a quick way to detect whether a server is accessible, nor a configurable timeout for file functions. The only way is to call the function in a background thread, and then show a dialog after a while where the user can cancel the operation.

I'm using this method for FindFirstFile now, you can try it if you want:

wincmd.ini
[Configuration]
ThreadFindFirst=1

I will probably make this the default in one of the next betas. Currently there is no such option for copying or other file operations, sorry.
Author of Total Commander
https://www.ghisler.com
MnCC
New Member
New Member
Posts: 1
Joined: 2009-07-10, 11:48 UTC

Post by *MnCC »

wouldnt it be easier to send an echo request and initiate the process after the echo request is succesful ?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

MnCC wrote:wouldnt it be easier to send an echo request and initiate the process after the echo request is succesful ?
Not all servers answer on echo requests. So, if echo fails, we don't know is it online or not.
Post Reply